基于VBA技术的AutoCAD二次开发在地形图绘制中的应用

    Extended application of AutoCAD on the map-making based on VBA technology

    • 摘要: 地形图绘制是农业工程领域生产实践活动中经常遇到的基础性工作。传统的地形图绘制需要大量的手工作业,效率较低。该文以VBA(Visual Basic for Application)为开发平台,对AutoCAD应用软件在地形图绘制中的应用进行了二次开发,从而实现了区域地形点的自动展绘。结合工程应用实例,探讨了运用AutoCAD内置的VBA进行二次开发的方法和过程。程序运行结果显示,该文介绍的方法占用内存小,自动化程度和工作效率高,适用范围广,可自动完成各类地形点的展绘工作,从而为各类地形图的自动绘制奠定了基础。

       

      Abstract: The drawing of topographical map is one of the basic works in practical production activity on agricultural engineering field. The traditional map-making needs a great deal of handicraft homework, and its efficiency is low. Based on the VBA(Visual Basic for Application) code, the extended application of AutoCAD software on map-drawing was developed and designed, which realized the automatic input of landform data and the drawing of topographic map. Combining an engineering example, the method and process to develop an extended application of AutoCAD with an inserted VBA code was discussed and illustrated. The operating result of the designed procedure indicats that the memory space occupied is small, the automatic degree and work efficiency for map-making are high, and its applicable scope is wide. The designed procedure can complete the drawing of topographic points automatically, and hence establishes a foundation for the making of topographic map.

       

    /

    返回文章
    返回