How can I set and store a "Path-Variable" inside an ACT-Extension?

Hello,
I am facing the following problem:
In Mechanical, I have a user object that accesses a .json file as a database. The database should be stored centrally on a shared drive in its finished state. However, each user should also have the option of defining their own database (which is then located centrally on the computer of the respective user).

How can I save the path to this database file as a default variable? The path should be set once and should not change when Ansys is reopened until the user makes another change.

Thank you in advance,
Philipp

Answers

  • Mike.Thompson
    Mike.Thompson Member, Employee Posts: 366
    25 Answers 100 Comments Second Anniversary 25 Likes
    ✭✭✭✭

    You can either have a path saved as an object property if you want it displayed and easily editable in the user interface, or if it is something that is managed internally, the object attributes are suitable for that.