Hi everyone,
I am trying to read splines in a sketch by an external C# program.
The interface ISketchSpline provides access to a specific spline but I found no way to extract the knots from this entity.
I know I can get the knots (and the control points) from the sketch itself but then I can not analyze the sketch segment by segment.
Is there a proper way to get the knots from the sketch segment ?
Thanks,
Guy
Side note :
I would like to use this post to warn any reader from using ISketchSpline::GetPoints which besides being obsolete, provides wrong data which, to my impression, fails to follow accepted standard spline parameter definitions.
What is even more severe is that there's no comment, warning or explanantion about it in the documentation.
Took me two days to track down the bug and to figure out that ISketchSpline::GetPoints and ISketch::GetSplineParams4 provide different data.
It seems to me that splines were/are implemented in SolidWorks in some different way and are not exaclty the same as in other places, for example a DXF.