Skip to main content

Get a single piece of data from the database in Template Editor

Modified: 19 Jan 2026 Tekla Structures 2026
2026
Tekla Structures

Before you get started ensure you have defined the global attributes file path in the File Locations preferences dialog box.

Use value fields to get data from your product's database. The available database objects and properties are listed in the global attributes definition file. Apply attribute functions in value fields.

Do the following:

  1. Insert a value field inside any template component.
  2. Select and double-click the value field to open the Value Field Properties dialog box.
  3. Create a formula using one of the following attribute functions:
    • GetValue

    • PreviousValue

    • NextValue

  4. Check the syntax of the formula click OK.
  5. Click OK to close the dialog box. The changes to the formula are saved.

See also

Creating a value field in Template Editor

Creating and saving a formula in Template Editor

Creating a listing of template objects from the database

GetValue

PreviousValue

NextValue

Submit

Table of Contents