NX二次开发-创建圆弧(三点圆弧)UF_CURVE_create_arc_3point
NX9+VS2012
#include <uf.h>
#include <uf_curve.h>
UF_initialize();
//起点
double ArcStartPoint[3];
ArcStartPoint[0] = 0.0;
ArcStartPoint[1] = 0.0;
ArcStartPoint[2] = 0.0;
tag_t ArcStartPointTag = NULL_TAG;
UF_CURVE_create_point(ArcStartPoint, &ArcStartPointTag);
//终点
double ArcEndPoint[3];
ArcEndPoint[0] = 100.0;
ArcEndPoint[1] = 0.0;
ArcEndPoint[2] = 0.0;
tag_t ArcEndPointTag = NULL_TAG;
UF_CURVE_create_point(ArcEndPoint, &ArcEndPointTag);
//第三点
double Arc3Point[3];
Arc3Point[0] = 50.0;
Arc3Point[1] = 50.0;
Arc3Point[2] = 0.0;
tag_t Arc3PointTag = NULL_TAG;
UF_CURVE_create_point(Arc3Point, &Arc3PointTag);
//设置类型
UF_CURVE_limit_t limit[2];
UF_CURVE_