Browser Development for Information Entry of Ancient Tree Based on 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.
-
Key words:
- AutoCAD /
- ObjectARX /
- C++ /
- secondary development
计量
- 文章访问数: 47
- HTML全文浏览量: 4
- PDF下载量: 9
- 被引次数: 0