


下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、精选优质文档-倾情为你奉上在Tekla的安装目录(D:TeklaStructures13.0ntbinplugins)中为我们提供了.Net API接口,利用这些接口,可以实现对Tekla模型的控制和修改操作。本贴将讲述一个最简单的在Tekla中创建梁对象的示例,通过一个按钮在运行的Tekla进程中快速创建模型。需要注意的是,运行此示例程序时Tekla程度需要打开一个模型。要连接Tekla模型数据库,需要在C#中添加“Tekla.Structures.Model”的引用,按钮下代码如下(C#):private void button1_Click(object s
2、ender, EventArgs e) Model M = new Model(); if (M.GetConne
3、ctionStatus()/判断是否获取了Tekla进程 Tekla.Structures.Point Pt1 =
4、 new Tekla.Structures.Point(0,0,0); Tekla.Structures.Point
5、;Pt2 = new Tekla.Structures.Point(6000,0,0); &
6、#160; Tekla.Structures.Point Pt3 = new Tekla.Structures.Point(600
7、0, 3000, 0); Tekla.Structures.Point Pt4 =
8、 new Tekla.Structures.Point(0, 3000, 0); Tekla.Structures.Point Pt5 =
9、0; new Tekla.Structures.Point(0, 0, 3000); Tekla.Stru
10、ctures.Point Pt6 = new Tekla.Structures.Point(6000, 0, 3000);
11、; Tekla.Structures.Point Pt7 = new
12、 Tekla.Structures.Point(6000, 3000, 3000); Tekla.Structures.Point Pt8= &
13、#160; new Tekla.Structures.Point(0,3000, 3000); Beam C1 = new Beam(Pt1,Pt5);
14、0; Beam C2 = new Beam(Pt2,Pt6); Beam C3 = new Beam(Pt3,Pt7);
15、0; Beam C4 = new Beam(Pt4, Pt8); C1.Profile.ProfileString = "HM440*300
16、*11*18" C2.Profile.ProfileString = "HM440*300*11*18" C3.Profile.ProfileSt
17、ring = "HM440*300*11*18" C4.Profile.ProfileString = "HM440*300*11*18"
18、 C1.Material.MaterialString = "Q235B" C2.Material.MaterialString = "Q235B"
19、160; C3.Material.MaterialString = "Q235B" C4.Material.MaterialString = "Q235B"
20、0; C1.Name = "Column" C2.Name = "Column"
21、 C3.Name = "Column" C4.Name = "Column"
22、160; C1.Position.Depth = Position.DepthEnum.MIDDLE; C2.Position.Depth = Position.DepthEnum.MIDDLE;
23、0; C3.Position.Depth = Position.DepthEnum.MIDDLE; C4.Position.Depth = Position.DepthEnum.MIDDLE;
24、 Beam B1 = new Beam(Pt5, Pt6); Beam B2 = new Beam(Pt6, Pt7);
25、 Beam B3 = new Beam(Pt7, Pt8); Beam B4 = new Beam(Pt8, Pt5);
26、 B1.Profile.ProfileString = "HN400*200*8*13"
27、60; B2.Profile.ProfileString = "HN400*200*8*13" B3.Profile.ProfileString = "HN400*200*8*13"
28、60; B4.Profile.ProfileString = "HN400*200*8*13"
29、 B1.Material.MaterialString = "Q235B" B2.Material.MaterialString = "Q235B"
30、160; B3.Material.MaterialString = "Q235B" B4.Material.MaterialString = "Q235B"
31、0; B1.Name = "Beam" B2.Name = "Beam" B3.Name = "Beam" B4.Name = "Beam"
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 新解读《GB-T 31155-2014太阳能资源等级 总辐射》
- 食堂厨师服务合同范本
- 租赁私人车辆合同范本
- 土方挖运输合同范本
- 房屋购销合同范本
- 租房合同范本怎么制作
- 工地包工合同范本
- 帐篷营地营运合同范本
- 喷粉合同范本
- 店铺共享出租合同范本
- 露天矿山安全培训课件
- 2025-2030全球及中国工程CAD软件行业市场现状供需分析及市场深度研究发展前景及规划可行性分析研究报告
- 塔吊前臂临近高压线处理方案
- 2025浙江1月卷读后续写及满分语料10类40句 (真假小偷) 解析版
- 构音训练测试题及答案
- 消防设施操作员自测试题及答案
- 《消防联动控制系统》课件
- 临床患者走失事件的应急预案
- 实验室用电安全
- 私人二手摩托车转让合同范本
- 全员应急教育与培训
评论
0/150
提交评论