基于ObjectARX的古树信息录入浏览程序开发
摘要:对比分析几种AutoCAD平台二次开发技术的优缺点,选择ObjectARX 2018开发库,使用C++编程语言,在AutoCAD 2018中实现了古树属性信息的录入和浏览功能。通过人机交互获取用户输入的古树属性信息,并把古树属性信息存储到图形的扩展属性XData里。向AutoCAD添加反应器,通过反应器获取鼠标位置的图形对象和XData数据,随后将属性信息显示到Tooltip中。阐述程序的逻辑结构并给出关键代码,可为实现类似功能提供参考。
Abstract:The advantages and disadvantages of several secondary development methods of AutoCAD platform are compared, and ObjectARX 2018 based on C ++ language is selected to realize the input and browse of attribute informations for ancient trees in AutoCAD 2018. The attribute informations of ancient trees could be input by users through human-computer interaction, and the informations are stored in the extended attribute XData of the graph.Add a reactor to AutoCAD to obtain the drawing object of mouse position and its XData, and then the attribute informations are displayed in the Tooltip. The logic structure of the program is introduced, and the key codes are provided, which could be used as a reference for similar functions.
中文标题:
基于ObjectARX的古树信息录入浏览程序开发
Browser Development for Information Entry of Ancient Tree Based on ObjectARX
作者:
陈真,尹燕运,马宏毓,李士锋,杜文晓
Chen Zhen,Yin Yanyun,Ma Hongyu,Li Shifeng,Du Wenxiao
作者简介:陈真,男,1982年生,河南信阳人,大学本科,工程师,主要从事地理信息系统应用开发。E-mail:58169671@qq.com
通讯地址:
中兵勘察设计研究院有限公司, 北京 100053
ChinaOrdnanceIndustrySurveyandGeotechnicalInstituteCo.,Ltd.,Beijing100053,China
中图分类号:TP311.52
doi:10.3969/j.issn.1007-2993.2020.04.008
出版物:岩土工程技术
收稿日期:2019-12-30
网络出版日期:2021-07-06
关键词:AutoCAD,ObjectARX,C++,二次开发
Key words:AutoCAD,ObjectARX,C++,secondary development
文档包含图片数量:图片(0)张
文档包含表格数量:表格(0)个
参考文献:
基金项目:
- 文件大小:
- 770.17 KB
- 下载次数:
- 60
-
高速下载
|