


下載本文檔
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)
文檔簡介
1、精選優(yōu)質(zhì)文檔-傾情為你奉上在Tekla的安裝目錄(D:TeklaStructures13.0ntbinplugins)中為我們提供了.Net API接口,利用這些接口,可以實(shí)現(xiàn)對Tekla模型的控制和修改操作。本貼將講述一個最簡單的在Tekla中創(chuàng)建梁對象的示例,通過一個按鈕在運(yùn)行的Tekla進(jìn)程中快速創(chuàng)建模型。需要注意的是,運(yùn)行此示例程序時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進(jìn)程 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)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025年建筑施工安全管理信息化在施工現(xiàn)場環(huán)境監(jiān)測中的應(yīng)用報告
- 航空發(fā)動機(jī)維修技術(shù)創(chuàng)新與2025年成本控制戰(zhàn)略規(guī)劃報告
- ktv大廳卡座管理制度
- 日式存錢賬本管理制度
- 地方儲備糧收購管理制度
- 幼兒園工作現(xiàn)場管理制度
- 公司天然氣節(jié)能管理制度
- 變電輸電考試題及答案
- 保安巡邏考試題及答案
- vb中專考試題及答案
- 公廁改造工程施工方案
- 核發(fā)排水許可證辦事指南
- 法院聘用書記員考試試題及答案
- 剖腹產(chǎn)延長產(chǎn)假申請書
- 2023年06月江蘇南通如東縣司法局等17家單位招錄政府購買服務(wù)人員124人筆試題庫含答案詳解
- 湖南三支一扶考試歷年真題
- 心肺運(yùn)動試驗(yàn)-PPT-醫(yī)學(xué)課件
- 物流公司安全生產(chǎn)規(guī)章制度匯編
- 門診急危重癥優(yōu)先處置制度及程序全套資料
- 滅火和疏散應(yīng)急預(yù)案流程圖
- 西藏自治區(qū)建筑與市政工程竣工驗(yàn)收報告
評論
0/150
提交評論