Hi Matthew, you can create an ACT extension out of the code and distribute the binary to the users. You can also install the extension as default so all the buttons will be loaded each time a project is opened.
Â
Â
Â
I hope you have already gone through the developer's page for ACT, which is used for automation in Mechanical, but if not, kindly check:
https://catalog.ansys.com/Developers.cshtml
This link includes the developer's guides, API guides, migration notes, and some templates.
Â
Finally, you can go through the scripting guide for Mechanical:
https://ansyshelp.ansys.com/account/Secured?returnurl=/Views/Secured/corp/v241/en/act_script/act_script.html
https://ansyshelp.ansys.com/account/Secured?returnurl=/Views/Secured/corp/v241/en/act_cust_mech/act_cust_mech.html
and for Workbench:
https://ansyshelp.ansys.com/account/Secured?returnurl=/Views/Secured/corp/v241/en/wb2_js/wb2_js.html
https://ansyshelp.ansys.com/account/Secured?returnurl=/Views/Secured/corp/v241/en/act_cust_wb/act_cust_wb.html
-Aniket