几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   SolidWorks二次开发 (http://www.dimcax.com/hust/forumdisplay.php?f=111)
-   -   Which functions of ISldWorks should I use to catch the error? (http://www.dimcax.com/hust/showthread.php?t=770)

huangyhg 2007-05-24 11:22 AM

Which functions of ISldWorks should I use to catch the error?
 
【隐藏帖】

huangyhg 2007-05-24 11:23 AM

回复: 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.