Get length of polyline

Use this forum to ask questions about how to do things in dxflib.

Moderator: andrew

Post Reply
Newbie Member
Posts: 5
Joined: Sun Jun 14, 2009 2:40 pm

Get length of polyline

Post by Tomtefar » Wed Mar 23, 2011 9:31 pm

Is there a magical way to get the total length of a polyline?
It has to work with rounded corners. I only have one polyline per layer if that makes it easier.

At the moment I use normal lines which I calculate the total length of by using their coordinates (they lack the rounded corners though).

User avatar
Site Admin
Posts: 6165
Joined: Fri Mar 30, 2007 6:07 am

Post by andrew » Wed Mar 23, 2011 9:59 pm

dxflib is solely designed to parse / write DXF files. Any kind of data interpretation or analysis has to be done on top of it. QCAD for example has a tool to get the total length of all selected entities.

Post Reply

Return to “dxflib 'How Do I' Questions”