Skip to main content

ModelCenter APIs 2026 R1

BeanshellUtil

Last update: 18.06.2026

public class BeanshellUtil

Utility class to execute any arbitrary Beanshell script from native code and return an object that can be accessed via JNI.

Author

mbelcher

Constructors

BeanshellUtil constructor()

Functions

Name Summary
runScript 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.

Connect with Ansys