This example shows how to add your own user-defined attributes to the attribute tree in 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.
-
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.
-
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. In this example, the content type is
DRAWING
. Add the attribute in the format
USERDEFINED.<ATTRIBUTE_NAME>
.
-
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
: