Extracting Block and Attribute Data

Blocks and attribute object definitions contain a great deal of data. AutoCAD automatically creates some of the data, including data that defines the block, such as the block’s name, its insertion coordinates, its insertion layer’s name, its X,Y,Z scale factors, and its X,Y,Z extrusion direction. This wealth of information can easily be extracted into a text file.

Attribute data is user-defined. The data that AutoCAD extracts consists of one element, which is either a character string or a numeric value. The attribute value can be anything the user wants it to be, and the number of attributes that can be attached to a block is unlimited.

By choosing the particular data records of blocks and the attributes ...

Get Inside AutoCAD® 2002 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.