


{"id":388734,"date":"2024-10-09T09:34:57","date_gmt":"2024-10-09T09:34:57","guid":{"rendered":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/gobal-name-system-not-defined-or-datamodel-or-mechanicalenum-not-defined\/"},"modified":"2024-10-09T09:34:57","modified_gmt":"2024-10-09T09:34:57","slug":"gobal-name-system-not-defined-or-datamodel-or-mechanicalenum-not-defined","status":"publish","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/gobal-name-system-not-defined-or-datamodel-or-mechanicalenum-not-defined\/","title":{"rendered":"Gobal name System not defined or DataModel or MechanicalEnum not defined"},"content":{"rendered":"<p>&lt;p&gt;Hi,&lt;\/p&gt;&lt;p&gt;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.&lt;\/p&gt;&lt;p&gt;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.&lt;\/p&gt;&lt;p&gt;I hope to hear from you soon.&lt;\/p&gt;<\/p>\n","protected":false},"template":"","class_list":["post-388734","topic","type-topic","status-publish","hentry","topic-tag-ansys-workbench","topic-tag-python-scripting"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_subscription":["467641","200"],"_bbp_author_ip":["87.122.205.27"],"_btv_view_count":["164"],"_bbp_topic_status":["unanswered"],"_bbp_topic_id":["388734"],"_bbp_forum_id":["27791"],"_bbp_engagement":["200","467641"],"_bbp_voice_count":["2"],"_bbp_reply_count":["1"],"_bbp_last_reply_id":["389985"],"_bbp_last_active_id":["389985"],"_bbp_last_active_time":["2024-10-16 10:00:52"]},"test":"rahulakkara-1997gmail-com"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/388734","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/388734\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=388734"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}