网学网为需要自动化专业的朋友们搜集整理了基于VB的AutoCAD二次开发技术的研究相关资料,希望对各位网友有所帮助!
论文编号:ZD948 论文字数:18351,页数:55
摘 要
作为最常用的CAD系统,AutoCAD是世界上拥有用户最多的CAD 软件。由于它是通用性的软件,用它进行各种专业设计会比较复杂,因此, AutoCAD允许用户根据各自行业的绘图特点、绘图要求,把它开发成为能够满足本行业设计师需要的CAD系统。随着智能建筑行业的发展,计算机辅助设计技术逐渐进入智能建筑领域,但目前还没有适合智能建筑行业的绘图软件。
本文根据智能建筑行业绘图设计的特点,通过分析绘图的功能和特点,抽象出不同图元的对象类,利用AutoCAD二次开发功能开发出以图元工具为基础的制图软件。本设计是基于AutoCAD的智能建筑制图软件的开发,主要研究内容包括两部分:基本绘图工具和专业绘图工具。由于时间所限,基本绘图工具仅开发了圆、圆弧和多线段,专业绘图工具仅开发了电容和开关。
关键词:AutoCAD、VB、二次开发
Abstract
As the most common CAD software, AutoCAD has most users in the world wide. Because it is common software, it will be complicated for users to use it for specialized graphic design. Therefore, AutoCAD allows users develop it into the secondary development system, which is meets to the designer''s need and is adapted to the graphics features and graphics requirements. With the development of intelligent building, the computer aided design is introduced into the intelligent building field. However, it has no appropriate CAD software for intelligent building at present.
In this thesis, according to the characteristics of graphic design in intelligent building field, various graphics units were constructed by analyzing graphics functions and graphics features. Furthermore, a graphics software base on graphics units was developed using the secondary Development function of AutoCAD. In this design, an intelligent building graphics design software was developed, which is compose of two main sections, basic graphics tools and specialized graphics tools. Since time is limited, only arc, circle and polyline are developed in basic graphics tool, and only capacitor and switch are developed in specialized graphics tool.
Keywords: AutoCAD、VB、secondary development
目 录
摘 要 II
Abstract III
1 前 言 1
1.1 选题背景 1
1.2 选题意义 1
1.3 主要研究内容 1
2 总体方案设计 3
2.1 系统设计要求 3
2.2 系统设计分工 3
3 Visual Basic 4
3.1 Visual Basic的简介 4
3.2 Visual Basic的特点 4
3.3 Visual Basic的集成开发环境 6
4 AutoCAD及其二次开发 8
4.1 AutoCAD 8
4.1.1 AutoCAD的简介 8
4.1.2 AutoCAD的特点 8
4.1.3 AutoCAD的功能 9
4.1.4 AutoCAD的用途 9
4.2 AutoCAD的二次开发 10
4.2.1 AutoCAD的二次开发的意义 10
4.2.2 ActiveX Automation 11
5 制图软件的开发 18
5.1 VB开发AutoCAD基本框架的建立 18
5.2 基础绘图工具 20
5.2.1 圆弧的绘制和圆弧的属性 20
5.2.2 多段线的绘制和多段线的属性 26
5.3专业绘图工具 32
5.3.1 电容的绘制 32
5.3.2 开关的绘制 36
4.2.1 AutoCAD的二次开发的意义 10
4.2.2 ActiveX Automation 11
6. 软件的形成 39
7 总结 41
致 谢 42
参考文献 43
附录1 绘制电容的完整VB程序 44
附录2 绘制开关的完整VB程序 47