NX二次开发-UFUN获取工程图详细信息UF_DRAW_ask_drawing_info

 1 NX9+VS2012
 2 
 3 
 4 #include <uf.h>
 5 #include <uf_draw.h>
 6 #include <uf_part.h>
 7 
 8 
 9 UF_initialize();
10 
11 //新建工程图(A4图纸)
12 char* DrawingName = "ABC";//设置图纸名字
13 UF_DRAW_info_t DrawingInfo;//设置图纸大小、投影视角、视图比例等
14 DrawingInfo.size_state = UF_DRAW_METRIC_SIZE;//设置图纸类型
15 DrawingInfo.size.metric_size_code = UF_DRAW_A4;//设置图纸大小
16 DrawingInfo.drawing_scale = 1.0;//设置比例
17 DrawingInfo.units = UF_PART_METRIC;//设置单位
18 DrawingInfo.projection_angle = UF_DRAW_FIRST_ANGLE_PROJECTION;//设置投影视角
19 tag_t DrawingTag = NULL_TAG;
20 UF_DRAW_create_drawing(DrawingName, &DrawingInfo, &DrawingTag);
21 
22 //获取工程图详细信息
23 UF_DRAW_info_t DrawingInfo1;
24 DrawingInfo1.size_state;
25 DrawingInfo1.size;
26 DrawingInfo1.drawing_scale;
27 DrawingInfo1.units;
28 DrawingInfo1.projection_angle;
29 UF_DRAW_ask_drawing_info(DrawingTag, &DrawingInfo1);
30 
31 UF_terminate();

NX二次开发-UFUN获取工程图详细信息UF_DRAW_ask_drawing_info

 

上一篇:NX二次开发-UFUN新建工程图UF_DRAW_create_drawing


下一篇:NX二次开发-UFUN返回当前图纸页的Tag函数UF_DRAW_ask_current_drawing