


{"id":357989,"date":"2024-03-19T17:52:57","date_gmt":"2024-03-19T17:52:57","guid":{"rendered":"\/forum\/forums\/topic\/automatically-load-user-buttons-when-mechanical-opens\/"},"modified":"2024-03-19T17:52:57","modified_gmt":"2024-03-19T17:52:57","slug":"automatically-load-user-buttons-when-mechanical-opens","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/automatically-load-user-buttons-when-mechanical-opens\/","title":{"rendered":"Automatically load user buttons when Mechanical Opens"},"content":{"rendered":"<p>I&#8217;ve created several User buttons for Mechanical (Automation\/User Buttons) that I want to share with my coworkers.&nbsp; Is there a way to save these Python scripts somewhere, and whenever someone opens an instance of Mechanical, Ansys reads in the Python scripts and automatically creates the Buttons?<\/p>\n<p>I&#8217;m trying to make it as hands-free as possible so noone has to deal with copying\/pasting scripts into the User Button definition every time there is a change in the code.&nbsp; I currently have it where all a coworker has to do is copy and paste a small script into a user button once, and that small script reloads everything and presents the GUI, but this is starting to get cumbersome to load in with increasing functionallity.&nbsp; Individual buttons will run smoother.<\/p>\n","protected":false},"template":"","class_list":["post-357989","topic","type-topic","status-closed","hentry"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_subscription":["266147","200"],"_bbp_author_ip":["23.206.193.59"]," _bbp_last_reply_id":["0"]," _bbp_likes_count":["0"],"_btv_view_count":["297"],"_bbp_topic_status":["unanswered"],"_bbp_topic_id":["357989"],"_bbp_forum_id":["27796"],"_bbp_engagement":["200","266147"],"_bbp_voice_count":["2"],"_bbp_reply_count":["1"],"_bbp_last_reply_id":["358070"],"_bbp_last_active_id":["358070"],"_bbp_last_active_time":["2024-03-20 06:35:01"]},"test":"m-littleholtec-com"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/357989","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\/357989\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=357989"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}