Allows data to be easily viewed and modified. Modified attribute values can be imported into original drawing, using the ATTIN command.
Command: ATTOUT
Enter output filename: Use the File dialog to
specify file name, location and type
Select objects: Specify the blocks whose
attributes you want to export
The block names and attributes are exported to the named file. If
the file already exists, you are prompted before it is overwritten.
You can easily view attributes in a spreadsheet format and edit
individual attribute values. Then you can enter the new values into
the drawing file, using the ATTIN
command
Usage:
When you execute the ATTOUT command, you are prompted for a file
name and for the names of the blocks you want to process. The
attributes in the selected blocks will be written to the named
file, in the format described below.
File Format:
The output file written by ATTOUT is a tab-delimited, ASCII file that is suitable for editing by most database and spreadsheet programs. Microsoft Excel works well for this task. Just make sure that when you save your changes you save them in a tab-delimited ASCII format; otherwise the ATTIN command will not be able to import from the file.
The first row in the file contains column headers that identify the data to ATTIN. The first two columns are labeled HANDLE and BLOCKNAME. These columns are optional to ATTIN, but their presence allows the attribute data to be read from this file and inserted into the drawing automatically. If these columns are not present, the user is prompted to supply this data as ATTIN is processing the file.
The remaining columns in the file are labeled with attribute
tags as they appear in the drawing. Because database programs often
require that column headers be unique, numbers are added to
duplicate attribute tags to ensure uniqueness. For example, the
header row in a file created by ATTOUT might look like
this:
HANDLE BLOCKNAME MYTAG MYOTHERTAG MYTAG(1)
The remaining rows in the file represent a single block insert object and the values of each of its respective attributes.
Because there is a column for each attribute from all selected blocks, there will almost certainly be attribute labels that do not apply to a specific block. These labels are indicated with the string "<>" in the cells that do not apply. Thus, in a file containing the preceding header row example, the row for a block that contains only the attribute MYTAG might look like this:
HANDLE BLOCKNAME MYTAG MYOTHERTAG MYTAG(1)
E1 MYBLOCK1 Data1 <> <>
The "<>" indicates that this attribute does not apply to the current block and that a cell is an attribute that does apply, but that it is empty at this time.