Here is a super techie questions with regards to GetTessPts for a curve derived from an edge from a contour from a sketch.
I have created a function to convert the points from a bcurve - sketch edge into a format I need and everything works fine in debug mode.
The problem seems to be in release mode I get occasional errors (not everything on the same part/sketch - 1 of of three)
System.Runtime.InteropServices.COMException (0x80010108): The object invoked has disconnected from its clients. (Exception from HRESULT: 0x80010108 (RPC_E_DISCONNECTED))
at SolidWorks.Interop.sldworks.IEdge.GetClosestPointOn(Double X, Double Y, Double Z)
at homagAddin.PMPageHandler.CreateTessCurve(Edge& swEdge, Int32 prcptr, String pid)
In a nutshell, I go from sketchentity to sketch via feature, then contour then edges as per the many examples.
The edge is determined to be a bcurve which is where CreateTessCurve comes in.
I use swEdge to get swCurve via getcurve and the GetTessPts sems to work -- but the original swEdge the fails on GetClosestPoint.
the error tells me that Solidworks dropped the connection, but why ??
Has anyone seem this before?? And why only in release mode ... (Visual Studio 2010 VB)
Any help at all would be greatly appreciated.