【VB开源代码栏目提醒】:网学会员在VB开源代码频道为大家收集整理了“【精品】ExcelVBA开发渠道纵断面图辅助绘图程序实践与探讨 - 农林牧渔“提供大家参考,希望对大家有所帮助!
本文由 pingtou168 贡献 pdf
文档可能在 WAP 端浏览体验不佳。
建议您优先选择 TXT,或下载源文件到本机查看。
新疆农业大学学报2009,32(1):89~92 Journal of Xinjiang Agricultural University 文章编号:1007—8614(2009)01—0089—04 ExcelVBA开发渠道纵断面图 辅助绘图程序实践与探讨 董文明1,马英杰1,崔 龙1,孔德庸 100094) (1.新疆农业大学水利与土木工程学院,乌鲁木齐830052;2.中国农业大学资源与环境学院。
北京 摘要:使用Excel的VBA编程功能, 将设计好的数据自动的输出为Auto CAD的命令组文件(Script),在Au— toCAD里运行该命令组文件,即口r快速的绘制渠道纵断面图。
使用该程序时.还可根据各项目的特点修改局部参数 和预设图框内容,直接批量生成施工图.极大程度上减化了渠道设计人员的绘图工作。
关键词: Excel;Auto CAD;VBA编程;渠道纵断面图绘图;传统绘图方法 文献标识码:A 中图分类号:TV222.1 Practice and Discussion on Auxiliary Drawing Routine of Excel VBA Development Channel Profile Diagram DONG (1.College of Wen—min91,MA Yin-jiel,CUI Lon91,KONG De—yon92 Water Xinjia Conservancy and Civil Engineering,ng Agricultural University,Urumqi 830052;2.College of Resources and Enviro China Agricultural Universitnment Science,y,Beijing 100094) In this paper,it introduces finish can Abstract: an improved way to to help US to canal run profile diagram.The in AutoCAD,can help with the help of VBA programs in Excel way, US to make Script files which be finish the canal profile diagrams easily When programing functwhen We design canals.ion was made using Excel VBA,the designed data were automatically output for the commond group of ,thenAuto CAD fi les (Script) a channel Profile diagram could immediately be finished.When using the program,it could con。
- be modified in accordance with the purpose of the characteristics of local map pre——set parameters and tent of the box.Directly the working tO a drawing could great exteat. be produced on a large scale which could decrease drawing work of channel designers Key words: Excel;AutoCAD;VBA Programming;channel s traditional ing mections auxiliarydrawing;ethod draw— Excel电子表格是工程设计人员进行数据处理 的一种常用工具。
特别是渠道设计 ,者,大部分利用 Excel表格处理断面数据(地面高程、渠底高程等) 但将数据录入到AutoCAD中绘制断面图却产生了 一定的困难,采用常规的手工录入数据,绘制各条设计线的方法,其效率和正确率都很低,一直以来,不 收稿日期:2008—10一12 基金项目:新疆水利水电重点学科基金项目 通讯作者:马英杰.E-mail:dwm@xjau.edu.cn 少设计者在Excel和CAD之间寻求着快捷、便利的 方法,诸如:复制、粘贴或利用手工编制CA