首页 > 学院 > 开发设计 > 正文

C# NX二次开发_代码实现圆弧_1

2019-11-10 22:08:52
字体:
来源:转载
供稿:网友
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();        }
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表