Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Process Simulation

Script Runner

  • Last UpdatedMar 12, 2024
  • 2 minute read

About the Script Runner

The Script Runner (ScScript.exe) is a ribbon utility that you can use to run a .csx file. Typically, the .csx file is a script written in C# that includes calls to the AVEVA Process Simulation Scripting Interface. The controls in the Run Script group on the Advanced tab allow you to run a script directly from the AVEVA Process Simulation user interface (UI) without opening an integrated development environment (IDE), such as Microsoft Visual Studio, or a command-line tool.

Typically, you use scripts to automate actions and processes in AVEVA Process Simulation. You can also extend your scripts to include application programming interfaces from third-party software, such as data visualization software. This allows you to transfer data to and from AVEVA Process Simulation and third-party applications to extend your data visualizations, as shown in the following diagram.

Embedded Image (65% Scaling) (LIVE)

Concepts

  • Scripts use the AVEVA Process Simulation Scripting Interface to automate changes within AVEVA Process Simulation.

  • You can use the the AVEVA Process Simulation Scripting Interface Help documentation distributed along with the Scripting Interface software development kit (SDK) to learn more about the available functions.

  • You can find the Scripting Interface SDK in the AVEVA Process Simulation installation package, in the Toolkits folder.

  • Scripts can also access third-party applications or utilities to meet your needs.

  • The Script Runner uses the %userprofile%\My Simulations folder as the current working directory. This means that:

    • Any relative paths that you use in your .csx file are relative to the %userprofile%\My Simulations folder.

    • Any generated output files appear in the %userprofile%\My Simulations folder.

Actions

  • Open and review the AVEVA Process Simulation Scripting Interface Help.

  • Add scripts to the user script folder to populate the list of scripts that you can run.

  • Select a script (.csx file) to run.

  • Run a script.

TitleResults for “How to create a CRG?”Also Available in