NX二次开发 UFUN初始化许可 UF_initialize
#include <uf_curve.h>
extern DllExport void ufsta(char* param, int* returnCode, int rlen)
{
if (UF_initialize())//初始化UFUN许可
return;
//UFUN函数创建四条直线
tag_t lines_tag;
UF_CURVE_line_t line_coords;
line_coords.start_point[0] = 0.0;
line_coords.start_point[1] = 0.0;
line_coords.start_point[2] = 0.0;
line_coords.end_point[0] = 10.0;
line_coords.end_point[1] = 0.0;
line_coords.end_point[2] = 0.0;
UF_CURVE_create_line(&line_coords, &lines_tag);//UFUN函数创建四条直线
UF_terminate();//结束UFUN许可
}