Tekla二次开发_两个零件相互切割(9) - 钢结构资源网 Tekla插件 CAD工具 犀牛GH汉化 Tekla二次开发_两个零件相互切割(9) - 钢结构资源网 Tekla插件 CAD工具 犀牛GH汉化

Tekla二次开发_两个零件相互切割(9)

      Model teklamodel = new Model();

      Point point = new Point(0, 7000, 0);
      Point point2 = new Point(1000, 7000, 0);
      Beam Beam1 = new Beam();
      Beam1.StartPoint = point;
      Beam1.EndPoint = point2;
      Beam1.Profile.ProfileString = "HI300-15-20*300";
      Beam1.Insert();

      Beam Beam2 = new Beam();
      Beam2.StartPoint = new Point(500, 6000, 0);
      Beam2.EndPoint = new Point(500, 8000, 0);
      Beam2.Class = BooleanPart.BooleanOperativeClassName;
      Beam2.Profile.ProfileString = "HI300-15-20*300";
      Beam2.Insert();

      BooleanPart Beam = new BooleanPart();
      Beam.Father = Beam1;
      Beam.SetOperativePart(Beam2);
      if (!Beam.Insert())
        Console.WriteLine("Insert failed!");
      Beam2.Delete();

      teklamodel.CommitChanges();

评论 0

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

清空信息
关闭评论