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的位置就是倒角参数,需要倒角时,修改此处