Hey everyone,
I am currently using an embedded instance of Mechanical in Python. I use the following code to include access to global variables:
from ansys.mechanical.core import App, global_variables
app = mech.App(version=231)
globals().update(global_variables(app))
Then I discovered, that enums are still not available using this method. The help page mentions setting the second argument of the global_variables function to True:
globals().update(global_variables(app, True))
However, this results in the following error when trying to run the code: TypeError: global_variables() takes 1 positional argument but 2 were given
As you can see above, I am running ANSYS version 23r1. Checking the packages in my virtual environment says that my ansys-mechanical-core is version 0.10.2 (help page says at least 0.10) and for the pyansys package 2024rc1 is listed on my end.
Is my 2023r1 version of the app an issue here or is there another problem I am overlooking?
Thanks for your help!