NXOpen::FileNew *fileNew1;
fileNew1 = theSession->Parts()->FileNew();
fileNew1->SetUseBlankTemplate(true);
fileNew1->SetUnits(NXOpen::Part::UnitsMillimeters);
fileNew1->SetNewFileName("E:\\NX\\TEMP\\_mode.prt");
NXOpen::NXObject *nXObject1;
nXObject1 = fileNew1->Commit();
//workPart = theSession->Parts()->Work();
//displayPart = theSession->Parts()->Display();
fileNew1->Destroy();
标签:新建,fileNew1,部件,theSession,Parts,NXOPEN,FileNew,NXOpen From: https://www.cnblogs.com/firetuo/p/17204371.html