NX二次开发 UFUN创建扫掠 UF_MODL_create_sweep
//VS8.0+VS2010
#include <uf_modl.h>
#include <uf_curve.h>
#include <uf_vec.h>
extern DllExport void ufsta(char* param, int* returnCode, int rlen)
{
if (UF_initialize())
return;
//创建三点圆弧,引导线
double first_point1[3] = { 0.0, 0.0, 0.0 };
double second_point1[3] = { 0.0, 0.0, 5.0 };
double third_point1[3] = { 8.0, 0.0, 2.0 };
tag_t arc_tag1 = NULL_TAG;
UF_CURVE_create_arc_thru_3pts(1, first_point1, second_point1, third_point1, &arc_tag1);
//创建三点整圆,截面线
double first_point2[3] = { -2.0, 0.0, 0.0 };
double second_point2[3] = { 0.0, 2.0, 0.0 };
double third_point2[3] = { 2.0, 0.0, 0.0 };
tag_t arc_tag2 = NULL_TAG;
UF_CU