How can I set the ACT Additional Extensions search folder at the start-up of Workbench
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
Best Answer
-
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
0
Answers
-
@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"C:\Program Files\ANSYS Inc\v241\Framework\Site\SiteStartup.template.wbjn"
above will be executed everytime the
runwb2.exe
will be executedwhich is similar to that of good old
start.ans
for MAPDL under"C:\Program Files\ANSYS Inc\v241\ansys\apdl\start.ans"
0