This example shows how to add your own user-defined attributes to the attribute tree in Template Editor. Before you start, add the user-defined attribute to the objects.inp file otherwise the attribute will not work. For example, you might add an attribute named MY_ATTRIBUTE to the user-defined properties for drawings.
To add user-defined attributes to the attribute tree:
- Open the
contentattributes_userdefined.lst file in a text editor. - Save the file with an appropriate name, for example
MY_contentattributes_userdefined.lst, in the same folder.Do not modify the contentattributes_userdefined.lst file.
- Add
MY_ATTRIBUTE to the list of attribute names and, define the settings as follows: - Add
MY_ATTRIBUTE to the list of attributes assigned to content types. - Select the content type according to which object the attribute is associated to in the
objects.inp file. Add the attribute in the format USERDEFINED.<ATTRIBUTE_NAME>.In this example, the content type is DRAWING.

- Save the changes.
- Open the
contentattributes.lst file. - Add the following line in the file:
[INCLUDE MY_contentattributes_userdefined.lst]. - Save the changes.
The attribute is shown in the attribute tree in Template Editor, under DRAWING > USERDEFINED: