Ansys Learning Forum › Forums › Discuss Simulation › General Mechanical › ANSYS command line – running python script › Reply To: ANSYS command line – running python script
October 4, 2023 at 9:06 am
Aniket
Forum Moderator
C:\Program Files\ANSYS Inc\V231\Framework\bin\win64\runwb2 -R workbenchscriptfile -IÂ should be the way of doing it if you want to your script interactively from the command prompt.
https://ansyshelp.ansys.com/account/Secured?returnurl=/Views/Secured/corp/v232/en/wb2_js/wb2js_cmdlineexec.html
Does the workingproject.py script work when you run it from file>scripting>Run script file? If yes, try checking the file path for the script and see if the autocompletion feature helps to navigate to the correct path.
-Aniket