


下載本文檔
版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
1、精選優(yōu)質文檔-傾情為你奉上在Tekla的安裝目錄(D:TeklaStructures13.0ntbinplugins)中為我們提供了.Net API接口,利用這些接口,可以實現(xiàn)對Tekla模型的控制和修改操作。本貼將講述一個最簡單的在Tekla中創(chuàng)建梁對象的示例,通過一個按鈕在運行的Tekla進程中快速創(chuàng)建模型。需要注意的是,運行此示例程序時Tekla程度需要打開一個模型。要連接Tekla模型數(shù)據(jù)庫,需要在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. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經(jīng)權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 公司撕名牌策劃方案
- 公司日常打卡小活動方案
- 公司組織哪些活動方案
- 公司美食節(jié)活動策劃方案
- 公司沙龍如何做活動方案
- 公司節(jié)能減排策劃方案
- 公司整年團建活動方案
- 公司消費扶貧活動方案
- 公司職工瑜伽活動方案
- 公司環(huán)保創(chuàng)新活動方案
- 2025年江蘇省安全員《A證》考試題庫及答案
- 真需求-打開商業(yè)世界的萬能鑰匙
- 特應性皮炎的健康宣教
- 城市公園生態(tài)效益最大化策略
- 老年社會工作期末復習題
- 暑假假期安全教育(課件)-小學生主題班會
- 廣告投標書范本
- 醫(yī)療事故賠償協(xié)議書樣式
- 2024年保密培訓課件:員工保密知識要點
- 2025屆高考政治一輪復習:統(tǒng)編版必修2《經(jīng)濟與社會》25個必背重點知識
- 2024年職業(yè)病危害防治培訓試題
評論
0/150
提交評論