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

C# NX创建球体

2019-11-08 02:25:26
字体:
来源:转载
供稿:网友
 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;    }
上一篇:strength

下一篇:工程目录问题

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表