其他分享
首页 > 其他分享> > NX二次开发-UFUN获取工程图详细信息UF_DRAW_ask_drawing_info

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

作者:互联网

NX9+VS2012


#include <uf.h>
#include <uf_draw.h>
#include <uf_part.h>


UF_initialize();

//新建工程图(A4图纸)
char* DrawingName = "ABC";//设置图纸名字
UF_DRAW_info_t DrawingInfo;//设置图纸大小、投影视角、视图比例等
DrawingInfo.size_state = UF_DRAW_METRIC_SIZE;//设置图纸类型
DrawingInfo.size.metric_size_code = UF_DRAW_A4;//设置图纸大小
DrawingInfo.drawing_scale = 1.0;//设置比例
DrawingInfo.units = UF_PART_METRIC;//设置单位
DrawingInfo.projection_angle = UF_DRAW_FIRST_ANGLE_PROJECTION;//设置投影视角
tag_t DrawingTag = NULL_TAG;
UF_DRAW_create_drawing(DrawingName, &DrawingInfo, &DrawingTag);

//获取工程图详细信息
UF_DRAW_info_t DrawingInfo1;
DrawingInfo1.size_state;
DrawingInfo1.size;
DrawingInfo1.drawing_scale;
DrawingInfo1.units;
DrawingInfo1.projection_angle;
UF_DRAW_ask_drawing_info(DrawingTag, &DrawingInfo1);

UF_terminate();

断点调试图

在这里插入图片描述

标签:info,DrawingInfo,DRAW,DrawingInfo1,工程图,二次开发,UF,drawing,size
来源: https://blog.csdn.net/lu1287580078/article/details/89791687