


{"id":164461,"date":"2021-12-01T13:14:29","date_gmt":"2021-12-01T13:14:29","guid":{"rendered":"\/forum\/forums\/topic\/how-to-run-an-ansys-mechanical-script-each-time-the-geometry-is-update-in-the-workbench\/"},"modified":"2021-12-03T17:17:40","modified_gmt":"2021-12-03T17:17:40","slug":"how-to-run-an-ansys-mechanical-script-each-time-the-geometry-is-update-in-the-workbench","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/how-to-run-an-ansys-mechanical-script-each-time-the-geometry-is-update-in-the-workbench\/","title":{"rendered":"How to run an Ansys Mechanical script each time the geometry is update in the Workbench?"},"content":{"rendered":"<div class=\"Item-Body\">\n<div class=\"Message userContent\">\n<p>How can be run a python script code in Ansys Mechanical each time the geometry is updated?<\/p>\n<p>When the python script runs in the Ansys Mechanical scripting window it performs ok.<\/p>\n<p>However I can not figure out how to automate Ansys Mehchanical to run python script code each time the geometry is updated in the Workbench?<\/p>\n<p>Can be done this in a &quot;Python Code Object&quot;? Or how to invoke running an Ansys Mechanical Python script when a Workbench geometry is updated?<\/p>\n","protected":false},"template":"","class_list":["post-164461","topic","type-topic","status-closed","hentry","topic-tag-ansys-mechanical","topic-tag-python","topic-tag-scripting","topic-tag-structural"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_author_ip":[""],"_bbp_old_reply_author_name_id":["Anonymous"],"_bbp_old_is_reply_anonymous_id":["false"],"_btv_view_count":["1616"],"_bbp_likes_count":["0"],"_bbp_subscription":["242000"],"_bbp_topic_status":["unanswered"],"_bbp_status":["publish"],"_bbp_topic_id":["164461"],"_bbp_forum_id":["27791"],"_bbp_engagement":["14","242000"],"_bbp_voice_count":["2"],"_bbp_reply_count":["1"],"_bbp_last_reply_id":["199205"],"_bbp_last_active_id":["199205"],"_bbp_last_active_time":["2021-12-03 17:17:40"]},"test":"flahuertaitainnova-es"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/164461","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\/164461\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=164461"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}