how can i draw clamped B-spline curves with control points by using parasolid API functions?

I am using parasolid API functions to draw some clamped B-spline curves with control points. to make it clamp Im using non uniform knot type so I can define multiple knot values to make it clamp, but with that Im getting bad knot error;