Export polyline coordinates to CSV file
Posted: Wed Aug 12, 2020 2:51 pm
Hi all,
I am new to QCAD and looking for advice/assistance.
I am looking to export the coordinates of polylines to a CSV file. Andrew provided me with this reference code and if I knew what I was doing I could probably extend it.
https://github.com/qcad/qcad/blob/maste ... olyline.js
My goal is to export the coordinates of the polyline's nodes with each polyline taking up only one row of the CSV file. I'd also like each row to contain the value of a custom field I've added myself (a type of identification number). For example, each line might look like ID,x1,y1,x2,y2,x3,y3,x4,y4, x5,y5 (only 5 points max since my shapes will almost always be closed triangles, and sometimes closed rectangles).
Any advice is appreciated. Is this even possible?
Thanks,
TonyE
I am new to QCAD and looking for advice/assistance.
I am looking to export the coordinates of polylines to a CSV file. Andrew provided me with this reference code and if I knew what I was doing I could probably extend it.
https://github.com/qcad/qcad/blob/maste ... olyline.js
My goal is to export the coordinates of the polyline's nodes with each polyline taking up only one row of the CSV file. I'd also like each row to contain the value of a custom field I've added myself (a type of identification number). For example, each line might look like ID,x1,y1,x2,y2,x3,y3,x4,y4, x5,y5 (only 5 points max since my shapes will almost always be closed triangles, and sometimes closed rectangles).
Any advice is appreciated. Is this even possible?
Thanks,
TonyE