NX二次开发-UFUN遍历获得可用对象UF_MODL_ask_object
NX9+VS2012
#include <uf.h>
#include <uf_ui.h>
#include <uf_modl.h>
#include <uf_obj.h>
UF_initialize();
//遍历获得可用对象
tag_t object = NULL_TAG;
UF_MODL_ask_object(UF_solid_type, UF_solid_body_subtype, &object);
while (object != NULL_TAG)
{
UF_OBJ_set_color(object, 186);//设置颜色
UF_MODL_ask_object(UF_solid_type, UF_solid_body_subtype, &object);
}
UF_terminate();
Caesar卢尚宇
2020年5月25日