. 1 NX11 + VS2013 2 . 3 #include <uf.h> . 4 #include <uf_part.h> . 5 #include <uf_ui.h> . 6 . 7 . 8 UF_initialize (); . 9 10 // Get part units (metric / imperial) . 11 int = partUnits 0 ; 12 is UF_PART_ask_units (UF_PART_ask_display_part (), & partUnits); 13 is 14 // print 15 char MSG [ 256 ]; 16 IF (partUnits == UF_PART_METRIC) . 17 { 18 is uc1601 (" The current unit is part: UF_PART_METRIC " , . 1 ); . 19 } 20 is the else IF (partUnits == UF_PART_ENGLISH) 21 is { 22 is uc1601 ( " current part units: UF_PART_ENGLISH " , . 1 ); 23 is } 24 the else 25 { 26 is uc1601 ( " abnormal " , . 1 ); 27 } 28 29 UF_terminate (); 30 31 is Caesar Lushang Yu 32 202 years 14 February
NX secondary development -UFUN get part of the units (metric / imperial) UF_PART_ask_units
Guess you like
Origin www.cnblogs.com/nxopen2018/p/12309721.html
Recommended
Ranking