Hi,
I've created a spline using API "ICreateSplineByEqnParams()" of sketch manager which gives ISketchSegment** as an output.
Now I convert that sketch segment into ISketchSpline** by using "QueryInterface()".
Please tell me, how to retrieve the spline information like KnotArrayCount, ControlPointArrayCount etc.?
Thanks & regards,
SolidworksApi macros
No need to cast it to ISketchSpline.
Simply call ISketchSegment::GetCurve to get an ICurve object.
Then use GetBCurveParams5 to get an ISplineParamData object, which has all the information you need.