Hello,everyone.I am now having some poblem with the Api function GetBCurveParams,I want to extract the params of a spline after I have sktched in Solidworks before.Because the skecth is drawed by myself,so I know the coordinates of the spline's control points.However,I have test the api GetBCurveParams(false/true),GetBCurveParams3(true,false/true,false/true),GetBCurveParams4(true,false,false,false)to get the control points and knot vector in cubic curve ,none of them can accurately does well.For eample,I drew the spline with 9 control points ,by SplineArray4 = swCurve.GetBCurveParams4(true, false, true, false);I get the array which gives back me 6 control points ,or the knot vector only consists of 0 and 1.I am really puzzled.Can someone give me some hints,thank you
Posting you example would help diagnose the problem. However i have had issues with this in the past. One thing to note is that when drawing a spline in solidworks you are note actually placing Controls points, but rather points for the spline to pass through. Try right clicking on the spline and select "Display Control Polygon" this will show you the actual control points. This might give you a hint to what is going on