NX二次开发-UFUN获取对象的透明度UF_OBJ_ask_translucency

 1 NX11+VS2013
 2 
 3 #include <uf.h>
 4 #include <uf_ui.h>
 5 #include <uf_obj.h>
 6 
 7 
 8 UF_initialize();
 9 
10 //获取对象的透明度
11 //你所要求的对象是半透明的必须是下列其中一种:
12 //UF_solid_type, 与这些子类型之一:
13 //UF_solid_body_type
14 //UF_solid_face_type
15 //UF_faceted_model_type
16 //UF_component_type
17 UF_OBJ_translucency_t translucency;
18 UF_OBJ_ask_translucency(49120, &translucency);
19 
20 //打印
21 char msg[256];
22 sprintf_s(msg, "%d", translucency);
23 uc1601(msg, 1);
24 
25 UF_terminate();
26 
27 Caesar卢尚宇
28 2020年2月17日

猜你喜欢

转载自www.cnblogs.com/nxopen2018/p/12324203.html