How to turn a piecewise linear curve into a spline ICurve

If I have a set of points how do I turn this into a spline ICurve? Are there any curve fitting API calls or will I have to do the fitting myself and then call one of the low level spline creation calls?

My use case is that I'm doing a non linear transformation of an input ICurve to an output ICurve. I do this by first sampling the input curve at a small enough interval. I then collect the points and want to generate a new ICurve.

SolidworksApi macros