Getting all points of a curve using a script

 From:  bemfarmer
6257.2 In reply to 6257.1 
Hi Martin

Is it a polyline?
Are the points endpoints, or control points? (or both)
Maybe separate into individual curves?
Seems like it should be easy to get the endpoints, but I would have to study on it a bit. Meanwhile someone else will
answer :-)

I do not know if control points can be obtained by script?

- Brian