I have found many macros to do what i am looking for but i have one that I like the best. the problem I am having is that when I like it to a hotkey it gives an error and then it wont work again unless I reinsert the text.
also opening the macros that others have posted does not seem to work saying it is the wrong file format. how do I open these and get them to run properly?
*edit* I did figure out how to open other files, I never tried to open them from the solidworks window was only trying from Microsoft visual
Make sure you're selecting Main sub under method while setting the hotkey.