R:
Hello,
Earlier I wrote:
> As a result SolidWorks will close down. As part of the shutdown it will unload add-ins.
If your SW_DCI application is a COM-based add-in, the:
ISwAddin:isconnectFromSW
method will be the right place to notify your PC-DIMS software that SolidWorks is no longer available.
This method will be called when SolidWorks unloads an add-in.
Another solution that comes to mind is using Win32 API functions to obtain the process handle for sldworks.exe and use WaitForSingleObject to wait in a separate thread for the SolidWorks process to terminate. However, this is outside the scope of the SolidWorks API.
Regards,
Frank |