Extracting attribute information
You can extract attribute information from a drawing and save it to a separate text file for use with a database program. You can save the file in any of the following formats:
- Comma Delimited Format (CDF): Contains one line for each instance of a block, with individual attribute fields separated by commas. Character string fields are enclosed with single quotation marks. You must specify a template file when extracting to a CDF file.
- Space Delimited Format (SDF): Contains one line for each instance of a block. Each attribute field has a fixed length; there are no separators or character string delimiters. You must specify a template file when extracting to a SDF file.
- Drawing Exchange Format (DXF): Creates a subset of a standard DXF file (a *.dxx file) containing all the information about each block, including the insertion points, rotation angles, and attribute values. No template file is required.
Before extracting attributes to a CDF or SDF file, you must create a template file. The template file is an ASCII text file that specifies the attribute data fields to be written in the extract file. Each line of the template file specifies one attribute field. progeCAD recognizes 15 different fields, which contain elements such as the block name, the x-, y-, and z-coordinates of its insertion point, the layer on which it is inserted, and so on. You can include any of these fields. The template file must include at least one attribute name.
Each line in the template file must start with the field name. Block name and insertion-point values must begin with BL:. The next nonblank character must be either a C (indicating a character string field) or an N (indicating a numeric field). This character is then followed by three digits indicating the width of the field (in characters). The final three digits indicate the number of decimal places (for numeric fields). In the case of character fields, the last three digits must be zeros (000). A typical template file is similar to the one shown here:
- Field name.
- Block name. Block names must begin with BL:.
- Insertion point. Insertion-point values must begin with BL:.
- Attribute tags.
- Number of decimal places for numeric fields or 000 for character fields.
- Field width for character or numeric fields.
- C for character fields; N for numeric fields.
Tell me about...
Attaching attributes to blocks
Editing attribute definitions
Editing attributes attached to blocks
How do I...
Create a template file
Extract attribute information