The plan is to have a form that has multiple buttons and each button would run a different macro In VBA. Is this possible? If so could someone point me in a direction or has an example of one?
2013 SOLIDWORKS API Help - RunMacro2 Method (ISldWorks)
Why do you wan to create a form? You can add macro buttons to any tab directly or to shortcut menu.
You may also want to look the this tool created by Artem Taturevich : Enhancing SOLIDWORKS experience with custom macros library
Some of our templates that we use for our fixtures are similar. Some use certain steps and some do not. we would prefer that people aren’t out looking for and possibly select the wrong one. If we had a form with a button that ran a certain macro that takes alot of confusion out of things for everyone and then I could tie it to the standard work we have.
As far as file management goes, you would only need to make one adjustment to code instead of several.
You can add as many button as you want to the form and for each button create a separate sub/function, such that when user press on that button that particular function works.
Other (better) option would be to be to use RunMacro option as suggested by Fatih and you can keep the macro in one centralized location while each button on the form run a separate macro. The major advantage would be that when you want to edit/update any macro, you do not need to ask everyone to close the macro and secondly you only need to do in one single place.
Thanks for the help everyone!
Retrieving data ...