Add user-defined template attributes to Template Editor

Tekla Structures
2021
Tekla Structures

Add user-defined template attributes to Template Editor

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.

  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.
  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.

    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>.

  5. Save the changes.
  6. Open the contentattributes.lst file.
  7. Add the following line in the file:

    [INCLUDE MY_contentattributes_userdefined.lst]

  8. Save the changes.

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

Was this helpful?
Previous
Next