    

 ## On this page

  

 

 # runMacro2

 Last update: 30.07.2026 

public [runMacro2](run-macro2.md)(macroName: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html)): [Variant](./../-variant/index.md)

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

macroNamethe name of the macro to run