Skip to main content

ModelCenter APIs 2026 R1 SP03

setMacroScript

Last update: 30.07.2026

public setMacroScript(macroName: String, script: String)

set the script for a macro if the macro exists

Parameters

macroName the name of the macro
script the macro script to display in the editor

Connect with Ansys