NX二次开发-UFUN获取点集里的点数量和所有点tag UF_MODL_ask_points_parms
NX9+VS2012
#include <uf.h>
#include <uf_curve.h>
#include <uf_modl.h>
#include <uf_ui.h>
UF_initialize();
//创建点
double pointCoords1[3] = {0,10,20};
tag_t point1Tag = NULL_TAG;
UF_CURVE_create_point(pointCoords1, &point1Tag);
double pointCoords2[3] = {0,40,50};
tag_t point2Tag = NULL_TAG;
UF_CURVE_create_point(pointCoords2, &point2Tag);
double pointCoords3[3] = {0,70,80};
tag_t point3Tag = NULL_TAG;
UF_CURVE_create_point(pointCoords3, &point3Tag);
double pointCoords4[3] = {0,100,110};
tag_t point4Tag = NULL_TAG;
UF_CURVE_create_point(pointCoords4, &point4Tag);
//创建点集
tag_t points[4] = {point1Tag, point2Tag,point3Tag,point4Tag};
tag_t feature_tag = NULL_TAG;
UF_MODL_create_points_feature(4, points, &feature_tag);
//获取点集里的点数量和所有点tag
int num_points = 0;
tag_t* ponts = NULL_TAG;
UF_MODL_ask_points_parms(feature_