Disconnect from SolidWorks

Hi All,

So I wrote a little exe that connects to the active SW doc and copies the mass to the clipboard. I have noticed that after I run the exe and then exit SW, the SW exe keeps running in the task manager.

I'm guessing I need some sort of disconnect command to release SW, is that correct?

Thanks again!

Chris

SolidworksApi macros