Tekla二次开发_创建多边形板(5) - 钢结构资源网 Tekla插件 CAD工具 犀牛GH汉化 Tekla二次开发_创建多边形板(5) - 钢结构资源网 Tekla插件 CAD工具 犀牛GH汉化

Tekla二次开发_创建多边形板(5)

private void contourPlate()
        {
            TSM.Model model = new TSM.Model();
            TSMU.Picker _picker = new TSMU.Picker();
            ArrayList pickedPoints = _picker.PickPoints(Picker.PickPointEnum.PICK_POLYGON, "Pick polygon points");

            ArrayList contourPoints = new ArrayList();
            foreach (TSG.Point point in pickedPoints)
            {
                ContourPoint contourPoint = new ContourPoint(point, new Chamfer());
                contourPoints.Add(contourPoint);
            }

            TSM.ContourPlate CP = new TSM.ContourPlate();
            CP.Contour.ContourPoints = contourPoints;
            CP.Profile.ProfileString = "PL25";
            CP.Material.MaterialString = "Q235B";
            CP.Class = "12";
            CP.Insert();
            model.CommitChanges();
        }

 

评论 0

挤眼 亲亲 咆哮 开心 想想 可怜 糗大了 委屈 哈哈 小声点 右哼哼 左哼哼 疑问 坏笑 赚钱啦 悲伤 耍酷 勾引 厉害 握手 耶 嘻嘻 害羞 鼓掌 馋嘴 抓狂 抱抱 围观 威武 给力
提交评论

清空信息
关闭评论