Macro for converting splines to 3pt arcs

I've put together a macro for converting a spline to 3pt arcs.  Either a spline edge, or a sketched spline is picked, reference points are created along the spline, and 3pt arcs are created along the spline in the form of a new sketch.  The problem I'm having is that the reference points seem accurate (are placed along the spline with appropriate spacings etc), and their locations can be verified, yet the points used to create the 3pt arcs are not accurate.  Some kind of issue is creating either a rounding or conversion error, or something else I'm not aware of. What could be causing the locations errors.

SolidworksApi macros