257x
003481
2024-01-31

Scripting

RSECTION contains a powerful scripting language with which you can create, modify and delete the topology, load cases and internal forces. However, it is not possible to create, open or close files, start the calculation or read results, or communicate with other applications.

The scripting language JavaScript is used to create scripts. The following JavaScript extensions are included in RSECTION.

Units

The entries are interpreted in SI base units. However, you can also use units supported in RSECTION directly by writing the unit after the value, e.g. B. points [1] .coordinate_1 = 50mm.

Mathematical functions and constants

Mathematical functions and constants are available globally. For example, you can use sin (PI) instead of Math.sin (Math.PI).

Exponentiation

You can also define powers with the operator ^, e.g. B. 7 ^ 3 gives the same result as pow (7,3).

Sylvester Library

The Sylvester Library's vector and matrix operations are available for programming. Documentation can be found at http://sylvester.jcoglan.com/

run() function

You can use the run() function to run another script.

include() function

You can use the include() function to access the functions of another script.

Subsections
Parent section