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 displays 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
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>\nt\bin\TplEd\settings, but the location may be different in your environment.
The search order for the contentattributes.lst file is the following:
-
Model folder
-
Project folder defined by XS_PROJECT
-
Firm folder defined by XS_FIRM
-
Folder defined by XS_TPLED_INI
-
Folder defined by XS_TEMPLATE_DIRECTORY/settings