I have added a form to a VSTA macro. If I use Form1.DialogShow to show the form I cannot select parts in the SolidWorks window. If I use Form1.show the form disappears. By going to Tools>options and un-checking “Stop VSTA debugger on macro exit” and using Form1.Show() the form stays and I can select parts in my window but I use the Me.Close to close the window but the program doesn’t stop until I click the square “Stop Debugging” button.
What command is equal to the VBA End command so the program will stop or how do you get a dialog box to show so that parts can be selected in the window?
Thanks
Dan Miel
SolidworksApi macros