Skip to main content

Adding user-defined template attributes in Template Editor

Modified: 21 Apr 2023 Tekla Structures 2023
2023
Tekla Structures

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:

  1. Open the contentattributes_userdefined.lst file in a text editor.
  2. 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.

  3. Add MY_ATTRIBUTE to the list of attribute names and, define the settings as follows:

  4. Add MY_ATTRIBUTE to the list of attributes assigned to content types.
  5. 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.

  6. Save the changes.
  7. Open the contentattributes.lst file.
  8. Add the following line in the file: [INCLUDE MY_contentattributes_userdefined.lst].
  9. Save the changes.

The attribute is shown in the attribute tree in Template Editor, under DRAWING > USERDEFINED:

Submit

Table of Contents