423x
003481
2024-01-31

Scripts

RSECTION contains a powerful scripting language that allows you to create, modify, and delete topologies, load cases, as well as internal forces. However, creating, opening, or closing files, starting the calculation, or reading results, as well as communication with other applications, is not possible.

The JavaScript scripting language is used to create scripts. RSECTION includes the JavaScript extensions described below.

Units

Inputs 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. points[1].coordinate_1=50mm.

Mathematical Functions and Constants

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

Powers

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

Sylvester Library

The vector and matrix operations of the Sylvester Library are available for programming. Documentation can be found at: New Year's Eve

run() Function

With the run() function, you can execute another script.

include() Function

With the include() function, you can access the functions of another script.

Subchapters
Parent Chapter