Getting total line length

1
Bilih
8/25/2021 6:15 AM

Hello, my question is pretty straight forward: How do i get the total line lenght for all of the objects in the drawing. Is the only solution to manually sum all lengths of all entities or is there a method which does the calculations for you?

Wout
8/25/2021 9:06 PM

You can use the GetCoordinates example and adapt that.

But in general it's tricky, because of entities like wide polylines (LWPOLYLINE), it will produce the filled outline, and you probably don't get the result you expect.

- Wout

1