Problem with Coordinate System on curve

Good Day. I am new in Generative Components. I am creating a script, and have some problems with the coordinate system on a curve. I have sied that GC builds Cs creates and another way in line and

in an arc . Who knows how to create points along the curve in one way? This is my code