I am looking for command line command to run a Discovery script in batch mode
"%awp_root231%\Discovery\Discovery.exe" --hidden --run-script "D:\myfilepath\Open_Save.dscript" --exit-after-script
More command line options are in the help documentation. For v23.2:https://ansyshelp.ansys.com/account/secured?returnurl=/Views/Secured/corp/v232/en/discovery/UDA/user_manual/general/topics/c_Cmd.html
You can also leverage PyAnsys Geometry for this purpose through the "run_discovery_script_file" API
https://geometry.docs.pyansys.com/version/stable/api/ansys/geometry/core/modeler/Modeler.html#Modeler.run_discovery_script_file
Is it possible to make the CLI call to Discovery blocking? Running the command immediately returns "0" to Windows cmd.
Is it possible to make the CLI call to Discovery blocking?
start /wait "" "%awp_root242%\Discovery\Discovery.exe"