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.Point3d startpoint = new Point3d(0,0,0); NXOpen.Point3d pointon = new Point3d(50,100,50);
NXOpen.Point3d endpoint = new Point3d(100,100,100);
bool startAndEndGotFlipped;// 定义一个布尔类型变量 NXOpen.Arc line = workPart.Curves.CreateArc(startpoint, pointon, endpoint, true, out startAndEndGotFlipped); // out 返回一个值 theProgram.Dispose(); }