1 NX9+VS2012 2 3 #include <uf.h> 4 #include <uf_modl.h> 5 6 UF_initialize(); 7 8 UF_FEATURE_SIGN Sign = UF_NULLSIGN;//设置布尔 9 double Corner_pt[3] = {0.0, 0.0, 0.0};//设置原点 10 char *Edge_Len[3] = {"100", "100", "100"};//设置长宽高 11 tag_t BlkTag = NULL_TAG; 12 UF_MODL_create_block(Sign, NULL_TAG, Corner_pt, Edge_Len, &BlkTag); 13 14 UF_terminate();