NX二次开发 UFUN拉伸函数 UF_MODL_create_extruded2
//NX8.0+VS2010
#include <uf_curve.h>
#include <uf_modl.h>
#include <uf_obj.h>
extern DllExport void ufsta(char* param, int* returnCode, int rlen)
{
if (UF_initialize())
return;
tag_t tLineTags[4];
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] = 0.0;
line_coords.end_point[1] = 100.0;
line_coords.end_point[2] = 0.0;
UF_CURVE_create_line(&line_coords, &tLineTags[0]);//创建直线1
line_coords.start_point[0] = 0.0;
line_coords.start_point[1] = 100.0;
line_coords.start_point[2] = 0.0;
line_coords.end_point[0] = 100.0;
line_coords.end_point[1] = 100.0;
line_coords.end_point[2] = 0.0;
UF_CURVE_create_line(&line_coords, &tLineTags[1]);//创建直线2
line_coords.start_point[0] = 100.0;
line_coords.start_point[1] = 100.0;
line