AnsweredAssumed Answered

Recover from SolidWorks Crash

Question asked by Eric Drake on Jul 8, 2020
Latest reply on Jul 9, 2020 by Artem Taturevych

I have a standalone app that loops through a selection of files. Each SLDDRW file and its corresponding SLDPRT file are each opened, rebuilt, saved, and closed in SolidWorks. I have identified certain files that will cause SolidWorks to crash when it attempts to close them. I would like my standalone app to handle these crashes more gracefully. I currently catch the COMException that the API throws when SolidWorks goes down. The app logs the crash and tries to bring SolidWorks back up. Bringing it back up never works. I always have to close my app and start over manually.


Is there a way to reopen SolidWorks, skip the offending file, and continue through the selection of files?