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日

 


NX二次开发-更改图纸尺寸内容(编辑文本)uc5566

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-09
  • 2022-12-23
  • 2021-08-22
  • 2021-10-26
  • 2021-11-27
猜你喜欢
  • 2022-12-23
  • 2021-12-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案