netDxf icon indicating copy to clipboard operation
netDxf copied to clipboard

Is it possible to measure the total length of all lines in one dxf file?

Open madenney opened this issue 6 years ago • 2 comments

Let's say I was creating a program to determine how long it would take a CNC to cut out all lines in a file. First I would need the total length of all the lines. Is that possible with this software?

madenney avatar Mar 24 '20 19:03 madenney

Yes you can, iterate through the list of lines of the drawing and add their lengths, if you need it you can use the Vector.Distance method.

haplokuon avatar Mar 27 '20 18:03 haplokuon

Please, write some code example. Thanks in advance!

Kaio7912 avatar Mar 03 '21 23:03 Kaio7912