Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.
General Mechanical

General Mechanical

Topics related to Mechanical Enterprise, Motion, Additive Print and more.

Gobal name System not defined or DataModel or MechanicalEnum not defined

    • rahulakkara.1997
      Subscriber

      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.

    • Aniket Chavan
      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

      Forum Rules & Guidelines

       

Viewing 1 reply thread
  • You must be logged in to reply to this topic.
[bingo_chatbox]