NX二次开发-UF_OBJ_cycle_by_name遍历名字

 1     使用前自己要看好名字是加在body,还是face,还是curve,或者其他,别加错了。
 2     NX9+VS2012
 3 
 4 
 5     #include <uf.h>
 6     #include <uf_obj.h>
 7 
 8 
 9     UF_initialize();
10 
11     tag_t LineTag = NULL_TAG;
12     UF_OBJ_cycle_by_name("Line123", &LineTag);//遍历名字
13 
14     UF_OBJ_set_color(LineTag, 186);//设置颜色
15 
16     UF_terminate();

原文地址:https://www.cnblogs.com/nxopen2018/p/10957320.html