AnsweredAssumed Answered

Compare geometry API-problem

Question asked by Simon Klancnik on Apr 6, 2010
Latest reply on Jun 24, 2010 by 1-RYI6SI

I need help for example “Compare Geometry (C#)” from SolidWorks API help. I try example  without changes in the code  and it does not work. There is an error:

Unable to cast COM object of type 'System.__ComObject' to interface type 'SolidWorks.Interop.gtswutilities.gtcocswUtilities'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{E1D2A15F-1E95-4EB8-86F0-0DDB27CAB5A0}' failed due to the following error: Vmesnik ni podprt (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).

 

in the line

// Get the SolidWorks Utilities tool interface

swUtil = (gtcocswUtilities)swApp.GetAddInObject("Utilities.UtilitiesApp");

 

Thank you,

Simon

Outcomes