Add user-defined template attributes to Template Editor

Last updated September 10, 2019 by Tekla User Assistance

Software version: 

Add user-defined template attributes to Template Editor

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 Editortool in Tekla Structures that is used for creating and modifying templates to be used in drawings and reports


Before you start, add your user-defined attributeobject property created by the user in order to widen the range of predefined object properties

User-defined attributes are used when the predefined object properties are not sufficient but more properties are needed. For example, comment, locked, and erection status are user-defined attributes.

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 typedetermination of which template attributes can be used in the template object value fields for a template component row

    Content types are mainly based on object types.

    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 :

Quick feedback

The feedback you give here is not visible to other users. We use your comments to improve our content.
We use this to prevent automated spam submissions.
Content rating: 
No votes yet