


{"id":159194,"date":"2021-06-05T18:01:00","date_gmt":"2021-06-05T18:01:00","guid":{"rendered":"\/forum\/forums\/topic\/can-i-run-a-script-before-each-solving\/"},"modified":"2021-06-08T10:45:13","modified_gmt":"2021-06-08T10:45:13","slug":"can-i-run-a-script-before-each-solving","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/can-i-run-a-script-before-each-solving\/","title":{"rendered":"Can I run a script before each solving?"},"content":{"rendered":"<div class=\"Item-Body\">\n<div class=\"Message userContent\">\n<p>Hi dear Ansys learners and experts,<\/p>\n<p>I wonder if it is possible to run a script (Python API) before each solve? Probably my approaches are very poor and there are better ways to solve the problem but it is as follows: <\/p>\n<p>Using Workbench parameters and a script in SpaceClaim, I create geometries from several parts. Parts are added and removed, so the mesh\/material\/contact conditions have to be adjusted each time.This can be done comfortably via python scripts, but it is still manual. If I want to use the power of the parameter set, the manual option is no longer available. <\/p>\n<p>I look forward to your feedback.<\/p>\n<p>Ferdi<\/p>\n","protected":false},"template":"","class_list":["post-159194","topic","type-topic","status-closed","hentry","topic-tag-automation-code-2","topic-tag-python-scripting","topic-tag-workbench"],"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":["465"],"_bbp_likes_count":["0"],"_bbp_subscription":["232584"],"_bbp_topic_status":["unanswered"],"_bbp_status":["publish"],"_bbp_topic_id":["159194"],"_bbp_forum_id":["27791"],"_bbp_engagement":["200","186049"],"_bbp_voice_count":["2"],"_bbp_reply_count":["1"],"_bbp_last_reply_id":["181148"],"_bbp_last_active_id":["181148"],"_bbp_last_active_time":["2021-06-08 10:45:13"]},"test":"fuxx"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/159194","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\/159194\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=159194"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}