AnsweredAssumed Answered

Restart SolidWorks session in VBA

Question asked by Eric Schwieterman on Mar 26, 2020
Latest reply on Mar 27, 2020 by Josh Brady

I am writing a macro in VBA thru Excel.  I am basically controlling SW with Excel VBA and looping thru solidworks files.  After about 1000 files SolidWorks crashes.  


What is the best code to close the active SolidWorks session and restart a new one so the code can continue on?


I have tried a few different things and nothing is working.  It fails to see/use the new session that was started.


Thanks in advance.  Eric