Define variables

Tekla Tedds
2020
Tekla Tedds Tekla Tedds for Word

Define variables

You define all variables in the same way whether you are defining variables for a calc section or for a document. After you have created a variable and assigned a value to the variable, you can use it throughout your calculations in the same calc section or document. To create variables, see the following instructions.

Note:

The following only applies to Tedds for Word.

Variables can be equal to:
  • A value

    For example x = 45 or Z = 245 N/mm2

  • A string

    For example text = "This is a string of text."

  • The result of an expression

    For example C = A + B

For more information about the rules for variable names, see Components of calculations.

Assign a value to a variable

  1. Type the variable name and an equal sign.
  2. After the equal sign, type the desired value, expression, or string.

    For example:

    a = 45

  3. Calculate the expression.

    The variable is now stored in the variable list, and you can use it in later calculations.

Assign a unit to a variable

  1. After the variable and its value, place a space. Then, type the desired unit.

    For example:

    a = 45 m

  2. Calculate the expression.

    The variable is now stored in the variable list with its unit, and you can use it in later calculations.

Была ли эта информация полезной?
Назад
Далее