Example: Add user-defined template attributes to the Template Editor

Tekla Structures
2022
Tekla Structures

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.

  1. Open the contentattributes_userdefined.lst file in a text editor.

    You can find this file in the \bin\applications\Tekla\Tools\TplEd\settings folder in the Tekla Structures installation folder.

  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 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 in a text editor.
  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