NX secondary development -UFUN highlighted objects UF_DISP_set_highlight

. 1      NX11 + VS2013
 2  
. 3      #include <uf.h>
 . 4      #include <uf_modl.h>
 . 5      #include <uf_disp.h>
 . 6  
. 7  
. 8      UF_initialize ();
 . 9  
10      // Create the block 
. 11      UF_FEATURE_SIGN Sign = UF_NULLSIGN; // Set Boolean 
12 is      Double Corner_pt [ . 3 ] = { 0.0 , 0.0 , 0.0 }; // set the origin 
13 is      char * Edge_Len [ . 3 ] = { " 100 " , "100 " , " 100 " }; // set LWH 
14      tag_t BlkTag = NULL_TAG;
 15      UF_MODL_create_block1 (Sign, Corner_pt, Edge_Len, & BlkTag);
 16  
. 17      // highlighting the object 
18 is      UF_DISP_set_highlight (BlkTag, . 1 ); / / 1 open highlighted, 0 to disable highlighting 
. 19  
20 is      UF_terminate ();
 21 is      
22 is      Caesar
 23 is      2018 years 12 is dated 10 Day

Guess you like

Origin www.cnblogs.com/nxopen2018/p/10957188.html