Skip to main content

ModelCenter APIs 2025 R2

runMacro2

Last update: 16.07.2025

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