Skip to main content

ModelCenter APIs 2026 R1 SP03

runScript

Last update: 30.07.2026

public runScript(bshScript: String, arg: Any): Any

Run the specified string as a beanshell script TODO in future: support passing in more than one argument.

Return

An object containing the result of the script.

Parameters

bshScript the string to run through the BSH interpreter.
arg An argument to be passed in to the script. Should be referred to in the script by the name "arg".

Throws

Exception if something goes wrong while executing the script

Connect with Ansys