. 1 #include <uf.h> 2 #include <uf_draw.h> . 3 #include <uf_ui.h> . 4 . 5 . 6 . 7 UF_initialize (); . 8 . 9 // get current drawing page Tag 10 tag_t drawing_tag = NULL_TAG; . 11 UF_DRAW_ask_current_drawing ( & drawing_tag); 12 is 13 is // get the current page number of the drawing views 14 int NUM_VIEWS = 0 ; 15 UF_DRAW_ask_num_views (drawing_tag, & NUM_VIEWS); 16 . 17 char MSG [ 256 ]; 18 is sprintf_s (MSG, "View there has% d " , NUM_VIEWS); . 19 uc1601 (MSG, . 1 ); 20 is 21 is UF_terminate (); 22 is 23 is Caesar Lushang Yu 24 July 1, 2019
NX secondary development -UFUN obtain the number of the current sheet page views UF_DRAW_ask_num_views
Guess you like
Origin www.cnblogs.com/nxopen2018/p/11116167.html
Recommended
Ranking