Functions in Variable Formulas - Tekla User Assistance
Functions in Variable Formulas - Tekla User Assistance
Last updated December 12, 2016 by Tekla User Assistance | Software version: 2016i
- subtraction component
settings
division. properties
=D1*0.5 is faster than of
=D1/2 a
custom
/ division component
Plane
types
Variable
properties
Use logical and comparison operators inside if statements. You can use
if-then-else statements to test a condition and to set the value
according to the result.
For example:
=if (D1>200) then 20 else 10 endif
You can use the following operators inside if statements:
You can refer to ASCII files to get data. Tekla Structures searches for the
files in the following order:
1. model
2. ..\TeklaStructuresModels\<model>
\CustomComponentDialogFiles\
3. project (set with advanced option XS_PROJECT )
4. firm (set with advanced option XS_FIRM )
5. system (set with advanced option XS_SYSTEM )
The format for reading files is the following:
fVF("filename", "key_value_of_row", column_number)
Key value of row is a unique text value.
Column number is an index starting from 1.
NOTE:
Enter a space at the end of each row in the ASCII file. Otherwise
the information is not read correctly.
the
specified
power
side1
hypotenuse
side2
Use data type conversion functions to convert values into another data
type. You can use the following data type conversion functions:
NOTE:
The units depend on the settings in File menu > Settings >
Options > Units and decimals.
heights are
200,300,400 or 500
and width starts with
7: =match(P4,
"PFC[2345]00?7")
value
NOTE:
When you use trigonometric functions in variable formulas, you
need to include a prefix to define the unit. If you do not include a
prefix, Tekla Structures uses radians as the default unit.
d is degree. For example, sin(d180)
r is radians (default). For example, sin(r3.14) or sin(3.14)
Use the framing condition functions to return the skew, slope, and cant
angle of the secondary beam relative to the main part (column or beam).
You can use the following framing condition functions:
NOTE:
These functions do not return positive and negative slope and
skew values. It is not possible to determine up or down slope
and left or right skew with these functions.
The maximum skew angle to return is 45 degrees.
Tekla Structures calculates the angles in 2D so that slope and
skew are isolated from each other. For example, the skew angle
is not taken into consideration when calculating the slope angle,
which means that the slope angle value stays the same
regardless of the secondary part's rotation around the primary
part.
To find out the true 3D slope with the skew included, you can
use the following mathematical formula:
TRUE_SLOPE = atan( tan(SLOPE) * cos(SKEW))
The slope and skew are relative to a beam framing into a column.
Side view Top view
1. Column
2. Beam
3. Slope
4. Skew
With two beams, the slope is actually the horizontal skew of the beam
framing into the other beam, and the vertical slope of the beam relative
to the main is actually the skew angle.
1. Skew
2. Slope