338x
003475
2024-01-16

Scripts

RSTAB includes a powerful scripting language with which you can create, modify or delete the topology, load cases and loads. However, it is not possible to create, open or close files, start the calculation, read results, or communicate with other applications. To do that, we recommend using our WebService.

JavaScript is the scripting language used to create scripts. The following extensions to JavaScript are included:

Units

The entries are interpreted in SI base units. You can also directly use any units supported in RSTAB by adding the unit after the value, for example nodes[1].coordinate_1=5ft.

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

Powers can also be defined by the ^ operator. For example, 7^3 results in the same as pow(7,3).

Sylvester Library

The vector and matrix operations of the Sylvester Library are available for programming.

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.

Subchapters
Parent Chapter

Webinars