public static int Main(string[] args) { int retValue = 0; try { thePRogram = new Program(); //TODO: Add your application code here NXOpen.Part workPart = thesession.Parts.Work; NXOpen.Features.BlockFeatureBuilder blockFeatureBuilder1 = workPart.Features.CreateBlockFeatureBuilder(null); Point3d originPoint1 = new Point3d(0.0, 0.0, 0.0); blockFeatureBuilder1.SetOriginAndLengths(originPoint1, "10", "10", "10"); NXOpen.Features.Feature feature1 = blockFeatureBuilder1.CommitFeature();//特征委托给NX blockFeatureBuilder1.Destroy();//释放委托 theProgram.Dispose(); } catch (NXOpen.NXException ex) { // ---- Enter your exception handling code here ----- } return retValue; }
新闻热点
疑难解答