NX二次开发-创建圆弧(圆心-半径)UF_CURVE_create_arc_center_radius
NX9+VS2012
#include <uf.h>
#include <uf_curve.h>
#include <uf_modl.h>
UF_initialize();
//圆心点
double p1[3] = {0.0, 0.0, 0.0};
tag_t CenterTag = NULL_TAG;
UF_CURVE_create_point(p1, &CenterTag);
//辅助点
double HelpPoint[3] = {100.0, 0.0, 0.0};
tag_t HelpPointTag = NULL_TAG;
UF_CURVE_create_point(HelpPoint, &HelpPointTag);
//类型
UF_CURVE_limit_t limit[2];
UF_CURVE_limit_p_t pLimit[2] = { &limit[0], &limit[1] };
limit[0].limit_type = UF_CURVE_limit_value;
limit[0].value = 0;//按值
limit[1].limit_type = UF_CURVE_limit_value;
limit[1].value = 90;//按值
//创建XZ基准平面,用来放圆弧
double PlanePoint[3] = { 0.0, 0.0, 0.0 };
double Direction1[3] = { 0.0, 1.0, 0.