![]() |
Which functions of ISldWorks should I use to catch the error?
【隐藏帖】
|
回复: Which functions of ISldWorks should I use to catch the error?
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::DisconnectFromSW
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 |
所有的时间均为北京时间。 现在的时间是 06:25 PM. |