Customer has multiple versions of ACT extensions (test and production). They want to change the ACT Additional Extensions folder at start-up based on whether the user chooses the Production or Test enviroment
This can be done by creating 2 scripts. In the script we can use SetPreferenceValue("ACT_AdditionalExtensionsFolders", newPath). Then we can start Workbench and run this script form the command line:
“C:\Program Files\ANSYS Inc\v232\Framework\bin\Win64\runwb2.exe” -R “D:\ACT\setactdirTest.py” -I
@Jim Kosloski This bring back some old memories 🤓.
if this has to be deployed for whole company or all users, its not a good idea to tell every user to run above command using shell.
one approach would be to change the Shortcut itself so that each time user clicks on the shortcut above command will be executed.
more cleaner approach would be to put above command in something called SiteStartup under following path
SiteStartup
"C:\Program Files\ANSYS Inc\v241\Framework\Site\SiteStartup.template.wbjn"
above will be executed everytime the runwb2.exe will be executed
runwb2.exe
which is similar to that of good old start.ans for MAPDL under
start.ans
"C:\Program Files\ANSYS Inc\v241\ansys\apdl\start.ans"