NX二次开发 UFUN坐标标注 UF_DRF_create_orddimension
//NX8.0+VS2010
#include <uf_assem.h>
#include <uf_part.h>
#include <uf_obj.h>
#include <uf_modl.h>
#include <uf_view.h>
#include <uf_draw.h>
#include <uf_drf.h>
#include <uf_curve.h>
#include <uf_csys.h>
extern DllExport void ufsta(char* param, int* returnCode, int rlen)
{
if (UF_initialize())
return;
int status;
/* 创建圆弧 */
tag_t wcs, arc1_tag;
UF_CURVE_arc_t arc_coords;
UF_CSYS_ask_wcs(&wcs);
UF_CSYS_ask_matrix_of_object(wcs, &arc_coords.matrix_tag);
arc_coords.start_angle = 0.0;
arc_coords.end_angle = TWOPI;
arc_coords.arc_center[0] = 20.0;
arc_coords.arc_center[1] = 20.0;
arc_coords.arc_center[2] = 0.0;
arc_coords.radius = 1.0;
status = UF_CURVE_create_arc(&arc_coords, &arc1_tag);
/* 创建并显示一个坐标原点。 */
tag_t origin_tag;
char user_text[133] = "