Convert a drawing section view edge to ISplineSketch

Hello!

I have a drawing document with few section views created in it. It is possible to convert IEdge entities into ISplineSketch entities? I want to find some info like ISplineInfo TangentDriving / TangentMagnitude for selected edges which are not available to extract using ICurve ->ICurveParamData ..

I have tried:

swSelectionManager->GetSelectedObject6(1, -1, &pSelectedDispatch);

CComPtr swEdge;

hr = pSelectedDispatch->QueryInterface(__uuidof(IEdge), reinterpret_cast(&swEdge));

CComPtr swSketchSplineSegment;

hr = swEdge->QueryInterface(__uuidof(ISketchSegment), reinterpret_cast(&swSketchSplineSegment));

but swSketchSplineSegment is NULL and hr return E_NOINTERFACE.

There are other methods ?

SolidworksApi macros