0
点赞
收藏
分享

微信扫一扫

Tekla二次开发,学习记录二,创建折梁

松鼠树屋 2022-03-17 阅读 87
学习c#
 			Model model = new Model();
            //构建4个多边形点
            ContourPoint p1 = new ContourPoint(new TSG.Point(0, 0, 0),null);
            ContourPoint p2 = new ContourPoint(new TSG.Point(5000, 2500, 0), null);
            ContourPoint p3 = new ContourPoint(new TSG.Point(10000, 5000, 0), null);
            ContourPoint p4 = new ContourPoint(new TSG.Point(15000, 0, 0), null);

            PolyBeam polyBeam = new PolyBeam();
            polyBeam.AddContourPoint(p1);
            polyBeam.AddContourPoint(p2);
            polyBeam.AddContourPoint(p3);
            polyBeam.AddContourPoint(p4);
            polyBeam.Profile.ProfileString= "HI800-26-26*350";
            polyBeam.Material.MaterialString = "Q235";
            polyBeam.Insert();
            model.CommitChanges();

null的位置就是倒角参数,需要倒角时,修改此处

举报

相关推荐

0 条评论