1 NX11+VS2013 2 3 #include <uf.h> 4 #include <uf_modl.h> 5 #include <uf_ui.h> 6 #include <time.h> 7 8 UF_initialize(); 9 10 clock_t start = clock();//计时开始 11 12 //创建块 13 UF_FEATURE_SIGN sign = UF_NULLSIGN; 14 double corner_pt[3] = { 0.0, 0.0, 0.0 }; 15 char * edge_len[3] = { "100", "100", "100" }; 16 tag_t blk_obj_id = NULL_TAG; 17 UF_MODL_create_block1(sign, corner_pt, edge_len, &blk_obj_id); 18 19 clock_t finish = clock();//结束计时 20 21 //打印信息 22 char msg[256]; 23 lw->Open(); 24 sprintf(msg, "共耗时:%f", (double)(finish - start) / CLOCKS_PER_SEC); 25 lw->WriteLine(msg); 26 27 UF_terminate();