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:
ANSYS_INSTALL_PATH
/v242/Framework/bin/PLATFORM
/runwb2
Where PLATFORM
is one of the following (as applicable to the
application or tool that 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\V242\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.
Argument | Operation |
---|---|
-B
| Run 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
WorkbenchScriptFile
| 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. |
-I
| Run 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
WorkbenchProjectFile
| 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. |
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.