Session theSession = Session.GetSession();
Part workPart = theSession.Parts.Work;
Part displayPart = theSession.Parts.Display;
NXOpen.CAM.CAMObject[] objects1 = new NXOpen.CAM.CAMObject[1];
NXOpen.CAM.NCGroup nCGroup1 = (NXOpen.CAM.NCGroup)workPart.CAMSetup.CAMGroupCollection.FindObject("M01");
objects1[0] = nCGroup1;
workPart.CAMSetup.Postprocess(objects1,"手动换刀_法兰克_ys", "D:\\NC\\IPT1138-M01.nc", NXOpen.CAM.CAMSetup.OutputUnits.PostDefined);