NX二次开发 UFUN释放UF_EVAL_p_t UF_EVAL_free
//VS8.0+VS2010
#include <uf_curve.h>
#include <uf_obj.h>
#include <uf_modl.h>
#include <uf_eval.h>
extern DllExport void ufsta(char* param, int* returnCode, int rlen)
{
if (UF_initialize())//初始化UFUN许可
return;
//UFUN函数创建直线
tag_t lines_tag = NULL_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函数创建直线
double parm = 0.0; //返回位置0.0-1.0
double point1[3] = {2.0, 0.0, 0.0}; //输入点
double point2[3]; //返回点
U