Skip to main content

ModelCenter APIs 2026 R1 SP03

setMacroTimeout

Last update: 30.07.2026

public setMacroTimeout(macroName: String, timeout: Double)

sets the timeout for a macro if the macro exists

Parameters

macroName the name of the macro
timeout the number of seconds to allow a script to run before canceling it; -1 indicates no timeout

Connect with Ansys