NX11+VS2013 #include <uf.h> #include <uf_layer.h> UF_initialize(); //创建图层类别 UF_LAYER_category_info_t category_info1; strcpy(category_info1.name, "实体"); strcpy(category_info1.descr, "放实体的"); ; i < UF_LAYER_MAX_LAYER; i++)…
NX11+VS2013 #include <uf.h> #include <uf_layer.h> UF_initialize(); //创建图层类别 UF_LAYER_category_info_t category_info1; strcpy(category_info1.name, "实体"); strcpy(category_info1.descr, "放实体的"); ; i < UF_LAYER_MAX_LAYER; i++)…
1 NX11+VS2013 2 3 #include <uf.h> 4 #include <uf_layer.h> 5 6 7 UF_initialize(); 8 9 //创建图层类别 10 UF_LAYER_category_info_t category_info1; 11 strcpy(category_info1.name, "实体"); 12 strcpy(category_info1.descr, "放实体的"); 13 for…
1 NX11+VS2013 2 3 #include <uf.h> 4 #include <uf_ui.h> 5 #include <uf_layer.h> 6 7 8 9 UF_initialize(); 10 11 //获取一个图层类别的tag 12 tag_t category = NULL_TAG; 13 UF_LAYER_ask_category_tag("01.Tangkl_Solids", &category); 14 15 /…
NX9+VS2012 #include <uf.h> #include <uf_modl.h> #include <uf_obj.h> #include <uf_ui.h> UF_initialize(); //创建圆柱 UF_FEATURE_SIGN Sign = UF_NULLSIGN; ] = {0.0, 0.0, 0.0}; "; "; ] = {0.0, 0.0, 1.0}; tag_t CylTag = NULL_TAG; U…
NX9+VS2012 #include <uf.h> #include <uf_drf.h> #include <NXOpen/Annotations_Note.hxx> #include <NXOpen/NXObjectManager.hxx> UF_initialize(); //创建注释 char* TextString[] = {"Caesar卢尚宇"}; ] = {,,}; tag_t NoteTag = NULL_TAG; U…
NX11+VS2013 #include <uf.h> #include <uf_modl.h> UF_initialize(); //创建球 UF_FEATURE_SIGN Sign = UF_NULLSIGN;//设置布尔 ] = { 0.0, 0.0, 0.0 };//原点 ";//直径 tag_t SphereTag = NULL_TAG; UF_MODL_create_sphere1(Sign, Center, Diam, &SphereTag); UF…
NX11+VS2013 #include <uf.h> #include <uf_modl.h> UF_initialize(); //创建圆锥 UF_FEATURE_SIGN Sign = UF_NULLSIGN;//设置布尔 ] = { 0.0, 0.0, 0.0 };//原点 ";//高度 ] = { " };//顶部直径,底部直径 ] = { 0.0, 0.0, 1.0 };//矢量方向 tag_t ConeTag = NULL_TAG; UF_MODL…
NX11+VS2013 #include <uf.h> #include <uf_modl.h> UF_initialize(); //创建块 UF_FEATURE_SIGN Sign = UF_NULLSIGN; ] = {0.0, 0.0, 0.0}; ] = {"}; tag_t BlkTag = NULL_TAG; UF_MODL_create_block1(Sign, Corner_Pt, Edge_Len, &BlkTag); //特征找体 tag_t…
NX11+VS2013 #include <uf.h> #include <uf_modl.h> UF_initialize(); //创建块 UF_FEATURE_SIGN Sign = UF_NULLSIGN; ] = {0.0, 0.0, 0.0}; ] = {"}; tag_t BlkTag = NULL_TAG; UF_MODL_create_block1(Sign, Corner_Pt, Edge_Len, &BlkTag); //特征找体 tag_t…