CADBuilder Scripting Crash with addInterpolation function

Hello,

I using a script to import around 50 points into CADbuilder and interpolate a curve from them. After I import the points I attempt to create a line using the addInterpolation function and the imported points. When I do CadBuilder crashes. I can still accomplish the interpolation with 50 points using the GUI, however I have a lot of points and curves to make so I would rather automate it if possible. I can also use the script if I only use a small number of points (I have had success with 3 points). I have attached my python script. Anyone have any ideas why its crashing with a large number of points?

Thanks!

Attachments: