NX11+VS2013 #include <uf.h>
#include <uf_part.h>
#include <uf_draw.h>
#include <uf_ui.h> UF_initialize(); //查询图纸页tag
int Num_Drawings;
tag_p_t Drawing_Tags = NULL_TAG;
UF_DRAW_ask_drawings(&Num_Drawings, &Drawing_Tags); if (Num_Drawings == )
{
uc1601("提示:当前没有图纸页", );
} else
{
//打开图纸
UF_DRAW_open_drawing(Drawing_Tags[]); //导入图框
UF_import_part_modes_t Modes;
Modes.layer_mode = ;
Modes.group_mode = ;
Modes.view_mode = ;
Modes.cam_mode = false;
double Dest_Csys[] = { 1.0, 0.0, 0.0, 0.0, 1.0, 0.0 };
double Dest_Point[] = { 0.0, 0.0, 0.0 };
tag_t Group = NULL_TAG;
UF_PART_import("C:\\model1.prt", &Modes, Dest_Csys, Dest_Point, 1.0, &Group);
} UF_terminate();