How can I set the ACT Additional Extensions search folder at the start-up of Workbench

Jim Kosloski
Jim Kosloski Member, Employee Posts: 24
10 Comments Name Dropper First Anniversary Ansys Employee
✭✭✭✭

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

  • Jim Kosloski
    Jim Kosloski Member, Employee Posts: 24
    10 Comments Name Dropper First Anniversary Ansys Employee
    ✭✭✭✭
    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

Answers

  • kanchan_cadfem
    kanchan_cadfem Member Posts: 20
    10 Comments First Anniversary 5 Likes First Answer
    **

    @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 executed

    which is similar to that of good old start.ans for MAPDL under

    "C:\Program Files\ANSYS Inc\v241\ansys\apdl\start.ans"