Create and Execute a Script

Modelica Scripting lets you create and execute scripts in the Modelica Scripting window.

  1. To execute a command, type it in the lower line of the Modelica Scripting window and press Enter.
  2. To save the script, copy and paste all the commands into Modelica Script Editor, and click Save Script.
  3. To execute a script, you can use the function call RunScript(ScriptName).