Command Line Execution of ANSYS Workbench

ANSYS Workbench can be executed from the operating system command line and accepts a number of command line arguments to facilitate automation and the replay of scripts. The following command can be used to run ANSYS Workbench from the command line:

<installation path>/v170/Framework/bin/<platform>/runwb2

<platform> will be one of the following (as applicable to the application or tool you are using):

Win64
Linux64

For example, to run ANSYS Workbench from the default installation location on a Windows 64-bit system, the command would be:

C:\Program Files\ANSYS Inc\V170\Framework\bin\win64\runwb2

The following table describes the command line arguments that can be used to control ANSYS Workbench file operations and execution behavior at start-up.

ArgumentOperation
-BRun ANSYS Workbench in batch mode. In this mode, the user interface is not displayed and a console window is opened. The functionality of the console window is the same as the ANSYS Workbench Command Window.
-R <ANSYS Workbench script file> Replay the specified ANSYS Workbench script file on start-up. If specified in conjunction with –B, ANSYS Workbench will start in batch mode, execute the specified script, and shut down at the completion of script execution.
-IRun ANSYS Workbench in interactive mode. This is typically the default, but if specified in conjunction with –B, both the user interface and console window are opened.
-X Run ANSYS Workbench interactively and then exit upon completion of script execution. Typically used in conjunction with –R.
-F <ANSYS Workbench project file> Load the specified ANSYS Workbench project file on start-up.
-E <command>Execute the specified ANSYS Workbench scripting command on start-up. You can issue multiple commands, separated with a semicolon (;), or specify this argument multiple times and the commands will be executed in order.

The Console Window The console window is the same as the command window but is present when running in batch mode to provide a way of working directly with commands outside of the user interface.


Release 17.0 - © SAS IP, Inc. All rights reserved.