1 NX9+VS2012 2 3 #include <uf.h> 4 #include <uf_modl.h> 5 #include <uf_obj.h> 6 7 8 9 UF_initialize(); 10 11 //创建块 12 UF_FEATURE_SIGN Sign = UF_NULLSIGN; 13 double Corner_Pt[3] = {0.0, 0.0, 0.0}; 14 char *Edge_Len[3] = {"100", "100", "100"}; 15 tag_t BlkTag = NULL_TAG; 16 UF_MODL_create_block1(Sign, Corner_Pt, Edge_Len, &BlkTag); 17 18 //特征找体 19 tag_t BodyTag = NULL_TAG; 20 UF_MODL_ask_feat_body(BlkTag, &BodyTag); 21 22 //设置对象名称 23 UF_OBJ_set_name(BodyTag, "Hello"); 24 25 UF_terminate();