NX secondary development -UFUN obtain the number of the drawing sheet UF_DRAW_ask_num_drawings

. 1 #include <uf.h>
 2 #include <uf_draw.h>
 . 3 #include <uf_ui.h>
 . 4  
. 5  
. 6  
. 7  
. 8  UF_initialize ();
 . 9  
10  // get the number of sheets of the drawing sheet 
. 11  int num_drawings = 0 ;
 12 is UF_DRAW_ask_num_drawings (& num_drawings);
 13 is  
14  char MSG [ 256 ];
 15 sprintf_s (MSG, " the drawing sheet there of% d " , num_drawings);
 16 uc1601 (MSG, . 1 );
 . 17  
18 is  UF_terminate ();
 . 19 
20  Caesar Lu Shangyu
 21 July 1, 2019

Guess you like

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