Creating and saving a formula in Template Editor

Tekla Structures
Modified: 14 Nov 2024
2025
Tekla Structures

Creating and saving a formula in Template Editor

Formulas determine what is data is gathered and shown in the value field. The data source can be your product database or other value fields in the current template, and the reference to the data source is made with Template Editor data functions. This is where you use the global attributes listing of your product.

Create a value field before you create a formula.

To create a formula, do the following:

  1. Select the value field to modify and double-click it to open the Value Field Properties dialog.
  2. Click Formula to open the Formula Contents dialog box.
  3. You can create, modify and check the content of value field formulas in this dialog. You can select functions and parameters from the lists or type them in the Formula text field.
  4. Click Check to ensure that the formula syntax is correct. Make corrections if necessary.
  5. Click OK to save the formula and close the Formula Contents dialog box.
  6. Set the output properties of the value field to match the outcome of the formula.
  7. Click OK to accept the changes in the Value Field Properties dialog box.
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

Attribute functions in Template Editor

Control functions in Template Editor

Mathematical operations in Template Editor

Trigonometric functions in Template Editor

Statistical functions in Template Editor

Data type conversion functions in Template Editor

String operations in Template Editor

Miscellaneous functions in Template Editor

Was this helpful?
Previous
Next