This video shows a tool that exports vertices of a 3D Polyline into a CSV file (Video is in German language for support case)