摘要
AutoCAD的二次开发技术是许多领域内专用软件的开发技术,它有利于该领域内绘图效率的提高。本程序是为通惠排干渠横断面测量开发的一个小程序,主要是针对横断面图绘制部分。程序中利用AutoCAD二次开发技术,采用Visual Basic 6.0,AutoCAD VBA为平台,通过AutoCAD ActiveX Automation接口将消息发送到Au-toCAD。AutoCAD VBA允许VBA环境与AutoCAD同时运行,并通过ActiveX Automation接口对AutoCAD进行编程控制,在Visual Basic 6.0中用代码进行参数化自动绘图。程序可以实现横断面图自动生成。为方便使用者操作,程序设计了与AutoCAD交互的界面,用户只需要在对话框中输入数据文件名,其余的绘图工作由程序自动完成。
The technique of AutoCAD secondary development is applied in many areas,which help to improve drawing efficiency in the areas.This program is mainly designed for the cross-sectional measurement and drawing of Tong-Hui drainage ditch based on AutoCAD secondary development using Visual Basic 6.0 with the AutoCAD ActiveX Automation interface sending relative messages to AutoCAD.AutoCAD VBA environment allows VBA and AutoCAD to run together,ActiveX Automation interface is used for program control,and Visual Basic 6.0 program is used for parameterized automatic drawing.The program could implement cross-section drawing automatically.A friendly user interface is designed for the convenience of the user's operation;the user only need enter the file name in the dialogue box and the drawing will be finished automatically by the program.
出处
《测绘与空间地理信息》
2010年第3期120-123,共4页
Geomatics & Spatial Information Technology