摘要
论述了通过编程自动提取AutoCAD中尺寸、引线和公差标注等基本图元信息的方法。由于标注对象是一些基本图元对象构成的特定集合,其表现形式又各不相同,通过这些对象自身的属性和方法接口,无法获取重绘标注对象的足够信息,因而采用不同方式,编程自动获取构成这些标注对象的基本图形对象,进而获取这些基本图形对象中的属性信息。采用了AutoCAD的ActiveX Automation开发平台予以实现。
The methods of automated extraction of various attributes of the basic graphical entities constituting the dimensions, the leader and the tolerance in AutoCAD are described. As these three label objects are unusual graphical blocks, the attributes of the basic graphical entities inside can not directly be retrieved. For this reason, the paper describes how to inquire these basic entities from the blocks, and then all of the attributes of the entities can directly be extracted with programming. The developing platform of "ActiveX Automation" provided by AutoCAD is used for implementation.
出处
《工程图学学报》
CSCD
北大核心
2007年第4期136-140,共5页
Journal of Engineering Graphics