摘要
本文首先简要介绍了AutoCAD的几种二次开发平台,着重讲述了利用VB(VBA)这种开发工具对Auto-CAD2005进行二次开发,实现特定专业领域功能的过程。通过添加一个菜单并实现几个测量数字化成图功能的实例,详细阐述了如何将VB和VBA两者结合对AutoCAD2005进行二次开发,特别是怎样在Auto-CAD中菜单中运行VB语言编制的复杂应用程序的几种方法,以及如何在AutoCAD2005启动时自动加载自定义菜单的技巧,并结合实例给出了部分代码。
This paper firstly introduces several secondary development environment of AutoCAD, especially on how to successfully apply AutoCAD2005 to some professional fields based on the VB(VBA) secondary development platform. The details of developing through an example of adding a menu to the menubar of AutoCAD and some functions of survey digital mapping have been realized based on VB and VBA development environment. It also specifies on how to start complicate Visual Basic programs when clicking the AutoCAD menus, and the skills for automatically loading customer menus when starting the AutoCAD2005 program. Some codes of the examples illustrated in this paper for AutoCAD secondary developing based on Visual Basic are given.
出处
《信息技术与信息化》
2005年第5期44-46,77,共4页
Information Technology and Informatization