public static int Main(string[] args) { int retValue = 0; try { thePRogram = new Program(); //TODO: Add your application code here NXOpen.Part worPart = thesession.Parts.Work; NXOpen.Features.SphereBuilder sphereBuilder1 = worPart.Features.CreateSphereBuilder(null); sphereBuilder1.Diameter.RightHandSide = "100"; //NXObject nXObject1; //nXObject1 = sphereBuilder1.Commit(); sphereBuilder1.Destroy(); theProgram.Dispose(); } catch (NXOpen.NXException ex) { // ---- Enter your exception handling code here ----- } return retValue; }
新闻热点
疑难解答