TAGGED: ansys-workbench, python-scripting
-
-
October 9, 2024 at 9:34 amrahulakkara.1997Subscriber
Hi,
I have been trying to create a button on Ansys Workbench Mechanical scripting where certain Ansys Mechanical settings are called. They work fine, sometimes. But whenever I call a user defined package, it gives me the one among the following errors: Gobal name System not defined or DataModel or MechanicalEnum not defined.
The most hilarious part is that part of the code sometimes work. But always brings up that error when I save and restart Ansys Workbench.
I hope to hear from you soon.
-
October 16, 2024 at 10:00 amAniketForum Moderator
Â
Ansys employees can not debug the code on forum, but can you please add more details such as images and some more description? when the code works, are you running it in the same way? I am sure you may have used and heard before, but please try using rubber duck debugging to check each step in your code. If you can simplify your code and add it here that would be useful.
-Aniket
Â
-
- You must be logged in to reply to this topic.
-
781
-
407
-
265
-
201
-
162
© 2024 Copyright ANSYS, Inc. All rights reserved.