1 NX9+VS2012 2 3 #include <uf.h> 4 #include <uf_modl.h> 5 #include <uf_obj.h> 6 7 UF_initialize(); 8 9 UF_FEATURE_SIGN Sign = UF_NULLSIGN;//设置布尔 10 double Corner_pt[3] = {0.0, 0.0, 0.0};//设置原点 11 char *Edge_Len[3] = {"100", "100", "100"};//设置长宽高 12 tag_t BlkTag = NULL_TAG; 13 UF_MODL_create_block1(Sign, Corner_pt, Edge_Len, &BlkTag); 14 15 //特征找体 16 tag_t BodyTag = NULL_TAG; 17 UF_MODL_ask_feat_body (BlkTag,&BodyTag); 18 19 //获取对象的显示属性(图层,颜色,空白状态,线宽,字体,高亮状态) 20 UF_OBJ_disp_props_t DispProps; 21 UF_OBJ_ask_display_properties(BodyTag, &DispProps); 22 23 UF_terminate();
原文地址:https://www.cnblogs.com/nxopen2018/p/10957334.html
时间: 2024-10-10 15:16:26