TAGGED: ansys-workbench, python-scripting
-
-
October 9, 2024 at 9:34 am
rahulakkara.1997
SubscriberHi,
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 am
Aniket
Forum 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.
- LPBF Simulation of dissimilar materials in ANSYS mechanical (Thermal Transient)
- Simulate a fan on the end of shaft
- Nonlinear load cases combinations
- Real Life Example of a non-symmetric eigenvalue problem
- How can the results of Pressures and Motions for all elements be obtained?
- Contact stiffness too big
- Test post on Forum – LLM response – SC
- 13-Node Pyramid Element Shape Function
- Element Birth and Death
- Python-Script to Export all Children of a Solution Tree
-
4492
-
1494
-
1376
-
1209
-
1021
© 2025 Copyright ANSYS, Inc. All rights reserved.