Well, I've taken Corey's advice and dove into writing a macro to program our 2-axis CNC mill from SolidWorks. Theoretically, the process is simple (select line and arc endpoints, and arc centerpoints, get coordinates, and format into text the CNC mill can read). But, there are a few VBA / API roadblocks I've run into after about a day working on it. Here is the macro:
-The macro won't run except from the VBA Editor (with "sub main()" selected and the "play" button)
-I can't figure out a way to select more points / arcs as the macro goes on... only pre-selection is obvious.
Any tips? Ideally, I'd like my userform to pop up, and prompt the user to select vertices and centerpoints while choosing userform options in between. Is this possible? Manipulating focus between my userform and the solidworks graphics window seems difficult.
Oh, and if you can't tell, I'm an amateur at VBA. Also, I'm running SW Student Edition 2004-2005 on Windows 2000.
Thanks for any help you can give! Denny Trimble University of Washington