Running Discovery from the Command Line
Ansys Discovery supports command-line arguments you can include when launching Discovery from a command line or terminal prompt. All command-line arguments are case-insensitive.
Command-line syntax
discovery.exe <options>
It is good practice to put quotation marks around the path to the solver executable and around the full path to the project. This ensures that spaces in the path or project are not an issue.
Discovery supports the command-line arguments that appear in the table below.
Option | Description | Value |
---|---|---|
--exit-after-script |
Specifies the application should exit when script (defined by the
--run-script option) is finished. |
|
-h, --help |
Shows usage information. | |
--hidden |
Hides main window at start-up. | |
-l, --locale |
Specifies the country code (for example, fr for French) of the
language to be used in the UI. |
Country codes:
Example: |
--mipassword |
The password used to connect to a Granta MI materials database. | String |
--miport |
The port used to connect to a Granta MI materials database. | Integer |
--miusername |
The username used to connect to a Granta MI materials database. | String |
--no-addins |
Prevents loading of addins. | |
-o, --open |
Project to open at start-up. | File path |
-p, --license-prefs |
The preferred license to use. | String |
--run-script |
Script file to run. | File path |
--script-api |
Script API version when used with the --run-script
option. |
Integer |
--script-args |
Script arguments as a semicolon-separated list. | Example: --script-args "arg1;arg2;arg3" |
--script-async |
Boolean value indicating whether to run script asynchronously. | |
--script-throw |
Throws an error on exception while running the script file. | |
--skip-hardware-compatibility-checks |
Skips all hardware compatibility checks. Use with caution: disabling checks may cause the application to become unstable or crash. | |
--temp |
Overrides the temporary directory used by the application. | Directory |
--use-legacy-translator |
Switches the CATIA V5, CREO Parametric, IGES, NX, Rhino, Solid Edge, SOLIDWORKS, and STEP translators to using the legacy translators. |