NX二次开发 UFUN创建直线阵列 UF_MODL_create_linear_iset
//VS8.0+VS2010
#include <uf_modl.h>
extern DllExport void ufsta(char* param, int* returnCode, int rlen)
{
if (UF_initialize())
return;
//创建块
double block_point[3] = { 0.0, 0.0, -25.0 };
char* block_edge[3] = { "100", "50", "25" };
tag_t tag = NULL_TAG;
tag_t body_tag = NULL_TAG;
UF_MODL_create_block1(UF_NULLSIGN, block_point, block_edge, &tag);
UF_MODL_ask_feat_body(tag, &body_tag);
//创建1个球
double sphereCenter[3] = { 10.0, 10.0, 0.0 };
tag_t sphere_tag = NULL_TAG;
UF_MODL_create_sphere(UF_POSITIVE, body_tag, sphereCenter, "10.0", &sphere_tag);
//创建线性阵列
int method = 0;//0 = General 1 = Simple 2 = Identical
char* n