I'm currently working on automating a process using the Python API for HyperMesh. When I run the script in GUI mode, it executes successfully using the following command:
"C:\Program Files\Altair\2025.1\hwdesktop\hwx\bin\win64\runhwx.exe" -client HyperWorksDesktop -plugin HyperworksLauncher -profile HyperworksLauncher -l en -startwith HyperMesh -f "C:\WORK\Projects\PythonAPI\python_script.py"
However, when I switch to batch mode by adding the -b
flag, the script does not seem to execute:
"C:\Program Files\Altair\2025.1\hwdesktop\hwx\bin\win64\runhwx.exe" -b -client HyperWorksDesktop -plugin HyperworksLauncher -profile HyperworksLauncher -l en -startwith HyperMesh -f "C:\WORK\Projects\PythonAPI\python_script.py"
To confirm execution, the script is designed to save a HyperMesh file and a signal file upon successful completion. These files are generated in GUI mode, but not in batch mode.
Could you please advise on what might be causing this issue or suggest how to properly run the script in batch mode?