首页 > 其他分享 >NXOPEN新建部件

NXOPEN新建部件

时间:2023-03-10 18:23:29浏览次数:24  
标签:新建 fileNew1 部件 theSession Parts NXOPEN FileNew NXOpen

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

相关文章