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

Tekla Structures
Modified: 18 Nov 2024
2025
Tekla Structures

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

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

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.
  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. 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

Was this helpful?
Previous
Next