    

 ## On this page

  

 

 # addNewMacro

 Last update: 30.07.2026 

public [addNewMacro](add-new-macro.md)(macroName: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html), isAppMacro: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html))

adds a new Macro to ModelCenter's macro facility

#### Parameters

macroNamethe name of the new macroisAppMacrodefines whether the new macro is an Application macro (true) or Model macro (false)