Non periodic curve parameters from GetBCurveParams5 for periodic curve

Is there a way to get the nonperiodic curve parameters (degree, knotvector, controlpoints) for a given periodic curve (circle) with GetBCurveParams5?

I tried to set the "ForceNonPeriodic" property to true, but then I get an AccessViolationException.

Any suggestions?

SolidworksApi macros