-ATTEXT — Extract Attributes with Template
Writes the attributes to a CDF, SDF or DXF file, like AutoCAD -ATTEXT.
- Command:
-ATTEXT· Global name:_-ATTEXT
Writes the block attributes to a file with a field template, like AutoCAD 2027 -ATTEXT.
Usage
- Enter -ATTEXT and the format. With Objects you select the blocks first; otherwise every block with attributes in model space is extracted.
Enter extraction type or enable object selection [Cdf/Sdf/Dxf/Objects] <C>:
- In CDF and SDF, enter the template path (Enter: the previous one).
Enter template file name:
- Enter the extract file (without extension:
.txt, or.dxxin DXF).
Enter extract file name:
Template
One line per field: the name and its format, C (text) or N (number), with 3 digits of width and 3 of decimals. The names are the attribute tags or the block ones: BL:NAME, BL:LAYER, BL:HANDLE, BL:X, BL:Y, BL:Z, BL:ORIENT, BL:XSCALE, BL:YSCALE, BL:ZSCALE, BL:XEXTRUDE, BL:YEXTRUDE, BL:ZEXTRUDE, BL:LEVEL and BL:NUMBER.
BL:NAME C010000 BL:X N010003 DOOR C008000
Options
- Cdf: fields separated by commas; texts in single quotes and numbers with a leading space, like AutoCAD.
- Sdf: fixed-width columns (texts left-aligned and numbers right-aligned).
- Dxf: a DXF with the references and their blocks (the AutoCAD DXX only carries the references and their attributes).
Notes
- Every block that has some attribute of the template is a record;
BL:LEVELandBL:NUMBERare 1 (nested blocks are not walked).