I'm trying to clean our server ...
I've written code that searches a given location for assembly files and returns all of the components referenced within.
I then compare filenames to our "vaulted" parts and return a list of matches. I was then using File Size to determine if the files were...
Like I said, I've saved a template that gives me exactly what I want, but in whatever order SW determines. If I add holes one at a time (select the table in the feature tree -> Edit Feature -> Add Hole) then select it will add them to the bottom of the list, but that's pretty combersome...
Just can't seem to get it to work. I want to test to see if there is an currently running session of solidworks. On the API help SW page it says to use the "GetObject" command but doesn't give the syntax.
Here's what I want:
debug.print "Look for active SW session."
Look for a session line...
Everything is working well with the program that I have written thanks to a lot of help from users of this forum. One additional request has been made to add to my program: The ability to dissolve sub-assemblies into top level assemblies. This is a one line command if I am using 'SolidWorks'...
There's an API book on amazon for SW2006. I know quite a bit changed in the API from '06 to '07. Does anyone think it still may be worth while to get or does anyone know if/when an '07 API book will be available.
Thanks