Straighten Reference Curve

Is there anyway to force a reference curve to act similar to a polyline? I'm using 'swPart.InsertCurveFilePoint' from an XYZ array and get a result that smooths the curve similar to a spline. I need to have a linearly interpolated curve between points. Any way to ensure this?

SolidworksApi macros