1 #include <uf.h> 2 #include <uf_drf.h> 3 #include <uf_obj.h> 4 #include <uf_part.h> 5 #include <uf_ui.h> 6 7 8 UF_initialize(); 9 10 //遍历所有尺寸 11 int type = 0; 12 tag_t DimTag = NULL_TAG; 13 UF_OBJ_cycle_objs_in_part1(UF_PART_ask_display_part(), UF_dimension_type, &DimTag);//遍历所有尺寸 14 while (DimTag != NULL_TAG) 15 { 16 17 //更改尺寸内容(编辑文本) 18 UF_DRF_one_apptext_line_t cp4[] = { "OAL" }; 19 uc5566(DimTag, 1, 1, cp4);//也可以修改图纸注释,我觉得应该图纸上的内容都可以编辑修改 20 21 22 UF_OBJ_cycle_objs_in_part1(UF_PART_ask_display_part(), UF_dimension_type, &DimTag); 23 } 24 25 26 27 UF_terminate(); 28 29 Caesar卢尚宇 30 2019年7月4日