NX二次开发 UFUN新建图纸 UF_DRAW_create_drawing
//NX8.0+VS2010
#include <uf_assem.h>
#include <uf_part.h>
#include <uf_obj.h>
#include <uf_modl.h>
#include <uf_view.h>
#include <uf_draw.h>
extern DllExport void ufsta(char* param, int* returnCode, int rlen)
{
if (UF_initialize())
return;
//新建工程图(A4图纸)
char drawing_name[133] = "ABC";//设置图纸名字
UF_DRAW_info_t dDrawingInfo;//设置图纸大小、投影视角、视图比例等
dDrawingInfo.size_state = UF_DRAW_METRIC_SIZE;//设置图纸类型
dDrawingInfo.size.metric_size_code = UF_DRAW_A4;//设置图纸大小
dDrawingInfo.drawing_scale = 1.0;//设置比例
dDrawingInfo.units = UF_PART_METRIC;//设置单位
dDrawingInfo.projection_angle = UF_DRAW_FIRST_ANGLE_PROJECTION;//设置投影视角
tag_t tDrawingTag = NULL_TAG;
UF_DRAW_create_drawing(drawing_name, &dDrawingInfo, &tDrawingTag);
//新建工程图(自定义大小)
char drawing_name1[133] = "EDF";//设置图纸名字
UF_DRAW_info_t dDrawingInfo1;//设置图纸大小、投影视角、视图比例等
dDrawingInfo1.s