Skip to main content

ModelCenter APIs 2026 R1 SP03

runMacro2

Last update: 30.07.2026

public runMacro2(macroName: String): Variant

runs a macro and passes the current modelCenter object to the script (i.e., the script "app" object)

Return

Variant(reserved for future use)

Parameters

macroName the name of the macro to run

Connect with Ansys