1 NX9+VS2012 2 3 #include <uf.h> 4 #include <uf_modl.h> 5 #include <uf_ui.h> 6 7 8 UF_initialize(); 9 10 //获取建模的角度公差 11 double Tolerance; 12 UF_MODL_ask_angle_tolerance(&Tolerance); 13 14 //转换 15 char msg[256]; 16 sprintf_s(msg, "%f", Tolerance); 17 18 //打印 19 uc1601(msg, 1); 20 21 UF_terminate();