Skip to main content

Overriding template object colors with row rules in Template Editor

Modified: 21 Apr 2023 Tekla Structures 2023
2023
Tekla Structures

Override the colors of text objects, value fields and drawing objects in template rows when you want those objects to stand out in certain situations.

Choose from several colors that you can use in Template Editor. Valid color names are black, white, red, green, blue, cyan, yellow, magenta, brown, darkgreen, navyblue, greenblue, orange and gray. In addition you can use difference shades of gray by name in the row rules: Gray30, Gray50, Gray70 and Gray90.

Numeric id values for colors are also accepted as defined in extended_colors.map colormap file.

Do the following:

  1. Select the row to which you want to apply the rule and double-click to open the Row Properties dialog box.
  2. Click Advanced to open the Rule Contents dialog box.
  3. Create the row rule. Use the Output control function with the following syntax in the row rule to define the color override.

    Output("#<key>=<color>;")

    The following abbreviations are keys that refer to the template objects in question:

    • VFC (value field color)

    • TXC (text color)

    • DRC (drawing object color)

    You can combine these values in one row rule using a semicolon as a separator.

  4. Click Check to ensure the rule syntax is correct. Make corrections if necessary.
  5. Click OK to save the rule and close the Rule Contents dialog.
  6. Click OK to close the Row Properties dialog.
  7. Save the template.

Here is a row rule example:

Result: This rule overrides the colors when the LENGTH attribute is longer than 1000. Value fields are orange, text objects are yellow and the drawing color is blue (i.e. lines are blue).

Submit

Table of Contents