首页 | 官方网站   微博 | 高级检索  
     

Excel表格到AutoCAD表格的转换
引用本文:冯若谦,周文杰,王长伟. Excel表格到AutoCAD表格的转换[J]. 宁夏工程技术, 2003, 2(1): 76-80
作者姓名:冯若谦  周文杰  王长伟
作者单位:大连市交通规划勘查设计院,辽宁,大连,116033
摘    要:利用Microsoft Excel制表、统计、计算准确快捷和AutoCAD绘图方便实用的优点,充分发挥两者的优势,将Microsoft Excel的表格转换到AutoCAD图形中。在AutoCAD中可以方便地对表格的内容进行编辑修改,形成图文并茂的设计图纸。转换的方法是利用AutoCAD提供的VBA接口程序,将表格线条、表格内容按照原样绘制在AutoCAD图形中。转换的基本方法是通过读取Microsoft Excel各单元格四个边框和caption属性来确定AutoCAD中每个单元格边框粗细和文字内容、位置,在AutoCAD中利用VBA绘制多意线的命令AddlightWeight-Polyline绘制表格线框,利用文本标注命令AcadMtext和AcadText实现文字的标记。

关 键 词:VBA语言 Microsoft Excel 工作表 AutoCAD 表格转换 程序设计 线条转换 文字转换
文章编号:1671-7244(2003)01-0076-05
修稿时间:2002-10-14

Transforming Excel form into AutoCAD form
FENG Rou-qian,ZHOU Wen-jie,WANG Chang-wei. Transforming Excel form into AutoCAD form[J]. Ningxia Engineering Technology, 2003, 2(1): 76-80
Authors:FENG Rou-qian  ZHOU Wen-jie  WANG Chang-wei
Abstract:The contents of forms are edited and a mended,and design blueprints with g raphs and words are formed in AutoCAD,by making full use of good points of Mi crosoft Excel's functions of making forms,statistic,calculating quickly and exactly,and those of Autocad's convenient and practical graphing.The way to transform is to use the VBA connecting programs offered by Autocad to draw the lines and content s of forms as its original ones into graphs of Autocad.The basic way to tran sform is to confirm the contents of words and thi ckness of the frame of each unit of Aut ocad by reading through four frames o f each unit of Microsoft Excel,to draw frames of fo rms by using the addlightWeightPoly line order of VBA to draw multi -meani ng lines ,and to realize the marking of words by using the AcadMtext order and the AcadText order.
Keywords:VBA language  Microsoft Excel form  Autocad chart and transform
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司    京ICP备09084417号-23

京公网安备 11010802026262号