public static int Main(string[] args) { int retValue = 0; try { thePRogram = new Program(); //TODO: Add your application code here NXOpen.Part wokePart = thesession.Parts.Work; NXOpen.Point3d starPoint3D = new Point3d(0, 0, 0); NXOpen.Point3d endPoint3D = new Point3d(150, 120, 344); NXOpen.Line line = wokePart.Curves.CreateLine(starPoint3D, endPoint3D); line.Color = 186;//更改线颜色 theProgram.Dispose(); } catch (NXOpen.NXException ex) { // ---- Enter your exception handling code here ----- } return retValue; }
新闻热点
疑难解答