【正文】
vel function marking the realization。 (2) Exercise use of puter technology, enhancing the efficiency of water conservancy and hydropower project design capacity。關(guān)鍵詞:Auto CAD開發(fā),VBA,蝸殼,尾水管,重力壩,水電站。(2)設計圖紙六張:第一張內(nèi)容為樞紐布置圖;第二張為擋水壩和溢流壩剖面圖;第三張為水電站廠房橫剖面圖;第四張為發(fā)電機層的平面布置圖;第五張為水輪機層、蝸殼層平面、尾水管層平面圖;第六張為廠房縱剖面圖;要求圖面飽滿,繪制清晰、準確,尺寸齊全,標注文字使用標準仿宋體,并利用開發(fā)的參數(shù)化設計功能,完成相應部分的設計。通過學習與研究,本次論文應完成紅巖水電站水流系統(tǒng)參數(shù)化設計的內(nèi)容有:(1)Excel到AutoCAD的參數(shù)化繪圖的實現(xiàn)(在Excel中通過VBA搜索與發(fā)送數(shù)據(jù)到AutoCAD);(2)WES堰面曲線設計功能的實現(xiàn);(3)高程與水位標注功能的實現(xiàn);(4)AutoCAD工具欄的自定義。AutoCAD本身不具備以上功能,為提高設計效率,減少設計工作量,本論文課題以紅巖水電站設計為例,探討并開發(fā)AutoCAD的水輪機過流部件設計參數(shù)化功能,主要通過VBA編程實現(xiàn)從Excel到AutoCAD的繪圖參數(shù)化,以提高水利水電工程繪圖和設計的效率。一般是在通用繪圖軟件AutoCAD平臺上進行繪圖,在其它軟件上進行設計計算。摘 要水利水電工程作為一個傳統(tǒng)并且復雜的行業(yè),需要依靠現(xiàn)在的計算機技術(shù)來提高設計效率。但到目前為止,還沒有系統(tǒng)、專用的水利水電繪圖與設計軟件。AutoCAD具有易用性、二次開發(fā)性都很強的特點,但是用于水利水電專業(yè)繪圖和設計,其功能有很多不足之處。本課題的主要目的和意義:通過本次畢業(yè)設計,應達到以下目標:(1)加深對水利水電工程設計思路與方法的把握;(2)鍛煉運用計算機技術(shù),提高水利水電工程設計效率的能力;(3)鍛煉使用VBA編程技術(shù),開發(fā)AutoCAD的水利水電設計功能的能力;(4)初步培養(yǎng)在水利水電工程設計方面的研究能力。設計成果及要求:(1)設計說明書一份:要求章節(jié)分明,文理通順,字跡工整,內(nèi)容上應包括本設計所采用的資料、考慮過的問題、論述處理這些問題的依據(jù)、主要成果的論述與分析、必要的圖表等。(3)提交輔助設計程序的源程序:要求內(nèi)容完整,關(guān)鍵代碼有必要的注釋,并要求程序通過調(diào)試,能夠運行,沒有邏輯和語法錯誤。Abstract Water Resources and Hydropower Engineering as a plex and traditional industries, now need to rely on the design of puter technology to improve efficiency . But so far, no system for water conservancy and hydropower graphics and design software. GM in general is drawing AutoCAD software platform for mapping, in other software on the design and calculation. AutoCAD with ease of use, the development of secondary sexual characteristics are very strong, but for water conservancy and hydropower professional graphics and design, its functions have many deficiencies. AutoCAD itself does not have the above features, designed to improve efficiency, reduce the workload of the design, the papers subject to Hongyan hydropower station designed as an example, to explore and develop the turbine flow AutoCAD design parameters of the functional ponents, primarily through VBA programming from Excel AutoCAD drawings to the parameters, to improve water conservancy and hydropower project graphics and design efficiency. The main purpose of this subject and meaning: Through this graduate design, should achieve the following objectives: (1) deepen their understanding of Water Resources and Hydropower Engineering grasp the ideas and methods。 (3) the use of VBA programming technology training, development of water conservancy and hydropower AutoCAD design functional capacity。 (4) AutoCAD Toolbar custom. Design results and requirements: (1) design a brochure: Asked chapters clear, Arts and fluent, her Gong Zheng, content should include the design used by the data, taking into account the problem of dealing with these issues on the basis of the oute of the main exposition and analysis, charts and other necessary. (2) design drawings six: The first hub for the layout of the content。 Hydropower plant for the third cross section map。 Fifth floor for the turbine, the scroll of the plane, tail pipes of the floor plan。 Full requirements of drawings, drawing a clear, accurate, full size, the use of standards for tagging of Font, development and use of the design parameters of the function, plete the corresponding part of the design. (3) to the sourceaided design process: Requirements of a plete, the key codes necessary to note, and requested through the missioning process, to run, no logic and grammatical mistakes. Key words: Auto CAD development, VBA, scroll, tail pipes, gravity dam and hydropower station.目 錄1 AutoCAD輔助設計 1 AutoCAD VBA 技術(shù) 1 AutoCAD開發(fā)的優(yōu)點 1 AutoCAD VBA自身優(yōu)點 1 AutoCAD VBA相比其它環(huán)境的優(yōu)點 1 AutoCAD VBA 工程 2 VBA 管理器 2 AutoCAD VBA 命令 3 VBA IDE 編輯工程 4 紅巖電站CAD輔助設計研究 6 水工特性標注功能的實現(xiàn) 6 公式曲線功能的實現(xiàn) 8 Excel到AutoCAD的參數(shù)化制圖功能的實現(xiàn) 10 Excel到AutoCAD各種曲線功能的繪制 112 基本資料 13 流域概況與氣候條件 13 流域概況 13 氣候條件 13 水文站與徑流資料 14 工程地質(zhì)條件 16 水利動能 18 壩線與壩型 20 樞紐布置 21 對壩基的處理意見 22 紅巖河段水庫特性 23 紅巖河段H~Q關(guān)系線 243 水能計算 25 保證出力的計算 25 保證流量的計算 25 電站年平均流量的計算 30 紅巖電站流兩頻率曲線繪制 31 多年平均發(fā)電量的計算 33 代表年月平均流量的計算 33 年發(fā)電量 34 裝機容量的選擇 34 保證出力倍比法確定裝機容量 35 驗證年利用小時數(shù) 35 驗證過水能力 354 水輪機選擇 36 水輪機特征水頭 36 特征水頭 36 水輪機臺數(shù)與型號的選擇 36 機組臺數(shù)的確定 37 單機容量的計算 37 HL240型水輪機方案的主要參數(shù)選擇 37 ZZ440型水輪機方案的主要參數(shù)的選擇 39 兩種方案的對比分析 41 水輪機蝸殼設計 42 蝸殼主要參數(shù)的選擇 42 尾水管的型式和尺寸的確定 44 進口直錐段 44 中間彎肘段(肘管) 44 出口擴散段 45 尾水管的高度和水平長度 45 調(diào)速器、油壓裝置的形式和尺寸的確定 45 調(diào)速功的計算 45 接力器選擇 46 調(diào)速器的選擇 46 油壓裝置的選擇 46 估算發(fā)電機的尺寸和重量 47 發(fā)電機主要尺寸的估算 47 發(fā)電機重量估算 485 重力壩設計 50 擋水重力壩段設計 50 壩頂高程 50 壩頂設計 51 實用剖面形式選擇及穩(wěn)定分析 51 溢流壩設計 54 孔口型式及尺寸布置 54 剖面設計 56 消能防沖設計 57 溢流壩過水能力驗算 58 溢流重力壩的上部結(jié)構(gòu) 59 壩體的構(gòu)造設計 60 重力壩的分縫 60 廊道系統(tǒng) 61 止水設計 61 閘門止水 61 橫縫止水 616 樞紐布置 62 壩線的選擇 62 壩形選擇比較 62 樞紐布置 62 壩段劃分 637 電站廠房的設計 64 主廠房各層高程布置 64 機組安裝高程 64 尾水管頂部高程 64 尾水管底部高程 64 下部尾水管處基巖開挖高程 64 水輪機地面高程 64 發(fā)電機定子安裝高程 64 發(fā)電機層樓板高程 65 橋吊軌頂高程 65 廠房屋頂大梁底緣高程 65 屋頂高程 65 主廠房平面尺寸的確定 66 主廠房的長度 66 主廠房寬度 67 副廠房布置與設計 67 起重機的選擇 68 發(fā)電機型號的選擇 68 橋吊的起重量 68 橋吊跨度 68 平衡梁 68 吊車梁的選擇 68結(jié)束語 69謝 辭 70參考文獻 711 AutoCAD輔助設計Autodesk公司的AutoCAD軟件.以其杰出的工程圖形處理能力得到廣泛應用,但是,在工程設計中,常需要結(jié)合專業(yè)情況,將設計計算、數(shù)據(jù)處理和圖形繪制等進行綜合處理,僅靠AutoCAD自身的功能,是難以做到的。下面介紹Visual Basic for Application 編程環(huán)境對這些對象進行編程的相關(guān)概念,還簡要介紹了為 AutoCAD 與 VBA 提供的所有文檔和代碼樣例。此外VBA加入擴展了AutoCAD集成用戶化工具的能力,它集成了AutoLISP,Visual LISP和ObjectARX API等工具。VBA開發(fā)環(huán)境是一個可視化開發(fā)環(huán)境。可以使用AutoCAD工具欄,也可以使用標準VBA界面工具創(chuàng)建新的工具欄。VBA 和 VB 的主要差別是 VBA 和 AutoCAD 在同一進程空間中運行,提供的是具有 AutoCAD 智能的、非??焖俚木幊汰h(huán)境。這就意味著 AutoCAD(使用其他應用程序?qū)ο髱欤┛梢允侨?Microsoft Word 或 Excel 之類的其他應用程序的 Automation 控制程序。 在 AutoCAD 中實現(xiàn) VBA 有四大優(yōu)點: (1)Visual Basic 編程環(huán)境易于學習和使用。這使程序執(zhí)行得非???。這使開發(fā)人員可以構(gòu)造原型應用程序并迅速收到設計的反饋。這樣就為開發(fā)人員提供了非常靈活的方式來發(fā)布他們的應用程序 AutoCAD VBA相比其它環(huán)境的優(yōu)點AutoCAD ActiveX/VBA 接口表現(xiàn)出超出其他 AutoCAD API 環(huán)境的許多優(yōu)點: (1)速度:當與 VBA 在同一進程空間中運行時,ActiveX 應用程序