Modifying a value field formula in Template Editor

Tekla Structures
Modified: 14 Nov 2024
2025
Tekla Structures

Modifying a value field formula in Template Editor

The formula applied to a value field determines what data is gathered with the field. The data source can be your product database or other fields of the current template. The references to the data sources are created with data functions.

To modify a value field formula:

  1. Select the value field and double-click it to open the Value Field Properties dialog box.
  2. There are several ways to modify a value field formula:
    • Select a global attribute from the Formula list.

    • Click the Attribute button and select the appropriate attribute from the attribute tree.

    • Click the Formula button. This opens the Formula Contents dialog where you can modify the formula.

    Click Check to ensure that the formula syntax is correct. Make corrections if necessary.

  3. Click OK to accept the changes and close the Formula Contents dialog.
  4. Set the output properties of the value field to match the outcome of the formula.
  5. Click OK to accept the changes in the Value Field Properties dialog.
Note:

If a value field formula consists of a single attribute function, Template Editor automatically sets the Data type, Justify (alignment), Length, Meaning and Unit properties. Depending on the Unit property, Precision or Decimal properties are also set. The values are read from the global attributes definition file.

See also

Value field output properties in Template Editor

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

Creating a listing of template objects from the database

Template Editor formula and rule reference

Attribute functions in Template Editor

Control functions in Template Editor

Was this helpful?
Previous
Next