User-defined template attributes
User-defined template attributes are defined in the contentattributes_userdefined.lst file. By default, this file includes most of the user-defined attributes that are visible in the part properties.
To use your own attributes in templates and reports, make a copy of the file, rename it appropriately, and add the necessary attributes to that file.
The contentattributes_userdefined.lst file is divided into two sections:
-
A list of attribute names and default settings:
-
A list of attributes assigned to content types:
- The content type of the row in Template Editor
- The attribute hierarchy in Template Editor
- Customizable comments, such as the tab name in the user-defined attributes dialog box
- The name of the user-defined attribute, must be the same as in the objects.inp file
Example: Add user-defined template attributes to the Template Editor
This example shows how to add your own user-defined attributes to the attribute tree in the Template Editor.
Before you start, add your user-defined attribute to the
objects.inp file. For example, you might add an attribute named
MY_ATTRIBUTE
to the
user-defined properties of drawings.
Add comments to user-defined template attributes
You can add your own comments to the user-defined attributes in the Template Editor attribute tree.
Add hierarchy to user-defined template attributes
You can add your own hierarchy to the Template Editor attribute tree.
User-defined attributes are case sensitive. Ensure that you enter the attribute name using the correct case for all characters.
The new hierarchy is shown in the attribute tree: