2011

Table Of Contents
application. If you plan to extract the attribute information to a DXF (drawing
interchange format) file, it is not necessary to first create an attribute template
file.
NOTE Make sure that the attribute extraction file does not have the same name
as the attribute template file.
Create an Attribute Extraction Template File
Before you extract attribute information, you must create an ASCII template
file to define the structure of the file that will contain the extracted attribute
information. The template file contains information about the tag name, data
type, field length, and number of decimal places associated with the
information you want to extract.
Each field in the template file extracts information from the block references
in the drawing. Each line in the template file specifies one field to be written
to the attribute extraction file, including the name of the field, its character
width, and its numerical precision. Each record in the attribute extraction file
includes all the specified fields in the order given by the template file.
The following template file includes the 15 possible fields. N means numeric,
C means character, www means a 3 digit number for the total width of the
field, and ddd means a 3 digit number representing how many numeric decimal
places are to be displayed to the right of the decimal point.
BL:NAME Cwww000 (Block name)
BL:LEVEL Nwww000 (Block nesting level)
BL:X Nwwwddd(X coordinate of block insertion point)
BL:Y Nwwwddd(Y coordinate of block insertion point)
BL:Z Nwwwddd(Z coordinate of block insertion point)
BL:NUMBER Nwww000 (Block counter; the same for MINSERT)
BL:HANDLE Cwww000 (Block handle; the same for MINSERT)
BL:LAYER Cwww000 (Block insertion layer name)
BL:ORIENT Nwwwddd(Block rotation angle)
BL:XSCALE Nwwwddd(X scale factor)
BL:YSCALE Nwwwddd(Y scale factor)
BL:ZSCALE Nwwwddd(Z scale factor)
BL:XEXTRUDE Nwwwddd(X component of block extrusion direction)
BL:YEXTRUDE Nwwwddd(Y component of block extrusion direction)
BL:ZEXTRUDE Nwwwddd(Z component of block extrusion direction)
numericNwwwddd (Numeric attribute tag)
characterCwww000 (Character attribute tag)
The template file can include any or all of the BL:xxxxxxx field names listed,
but must include at least one attribute tag field. The attribute tag fields
Extract Block Attribute Data (Advanced) | 427