Getting all points of a curve using a script

 From:  Frenchy Pilou (PILOU)
6257.9 
You can also export your polyline for Sketchup and then use some plugins for save your points on an excel's file for example or STL for CAM... :)