Action: Execute Macro
Sym3 Integrator and Sym3 Operator.
A macro that can be typed in directly, or a reference to a function in the Client Script.
Properties
Name | Description |
---|---|
Macro |
The source code of the JavaScript macro to execute. |
Example
Change the value of a tag:
Client.Tags.Set("mytag", true);
Call a simulation script function
This example shows how to use the ‘Execute Macro’ action to call a simulation script function.
Project.CallSimulationScriptFunction("MyMenu", Caller, 2);
The Simulation Script function may be defined as follows:
function MyMenu(caller, parameter) {
LogDebug("MyMenu called: " + caller.Name + " and parameter=" + parameter);
}