Template attribute files (contentattributes.lst)

Tekla Structures
Modified: 12 Dec 2022
2024
Tekla Structures

Template attribute files (contentattributes.lst)

Template attributes represent object properties. You can use template attributes in value fields, formulas, and row rules to get the required data from your Tekla Structures database.

When you output the template, Tekla Structures replaces the attribute with the actual value of the corresponding object property. For example, if you include the attribute WEIGHT in a report template, Tekla Structures shows the weight of the model object in the report.

Template attributes are defined in the following files:

File name

Description

contentattributes.lst

This is a container file listing all the files that contain the actual attribute definitions. The files are added with INCLUDE sentences. The order of the files included in contentattributes.lst defines the reading order of the files.

This file is overwritten in the installation when you install a newer version of Tekla Structures. Ensure that you make a copy of this file before updating.

Generally, there is no need to modify contentattributes.lst. Do not modify it if you are not an administrator.

contentattributes_global.lst

This file contains attributes that are hard-coded into the program. Do not edit this file.

contentattributes_userdefined.lst

This file contains user-defined attributes, the same as in the objects.inp file.

This file is overwritten in the installation when you install a newer version of Tekla Structures. To use your own attributes in templates and reports, create a copy of this file and add the necessary attributes to that file.

By default, these files are located in ..\Program Files\Tekla Structures\<version>\bin\applications\Tekla\Tools\TplEd\settings, but the location might be different in your environment.

The search order for the contentattributes.lst file is defined in the tpled.ini file. The location of the tpled.ini file is defined by the XS_​TPLED_​INIadvanced option.

The following pointers are allowed in the tpled.ini file:
  • @\ = location of the tpled.ini file

  • .\ = location of tpled.exe (C:\Program Files\Tekla Structures\<version>\bin\applications\Tekla\Tools\TplEd)

To include your own attributes, modify the contentattributes.lst files in the relevant environment folders. The contentattributes.lst files are overwritten when you install a new version of Tekla Structures.

Was this helpful?
Previous
Next