DRAFTSIGHT sum of pomylines

Hello

 

I want to make quantities from polylines on Drafstight.

 

I would like to get the sum of the lengths and areas of the selected polylines or polylines per layer.

The properties of polylines give this information if only one is selected. I need it for several polylines at the same time.

 

Does anyone know how to do that with Driftsight?

If you have a method for AutoCAD, I'm interested too.

 

Thank you for your help.

Hello

The easiest way will be to convert all the polylines into one, so you can easily get its length!

To convert to a single polyline:

To convert a line into a Polyline:
1. Enter "editpolyline" into the command window
2. Select a line to start with
3. Enter "Y" to turn the line into a Polyline
4. Enter "J" to convert other line segments into a single Polyline
5. Select line segments to convert into a Polyline
6. End the command

1 Like

For AutoCAD, there is a LISP macro that does this very simply:

Download this file:

http://forums.autodesk.com/autodesk/attachments/autodesk/706/54769/1/TLENGTH__v101_US.lsp

Spring:

http://forums.autodesk.com/t5/autocad-2013-2014-2015/how-to-calculate-the-total-length-of-multiple-lines/td-p/5120514

1 Like

Thank you

 

Is this method for AutoCAD or Draftsight?

I succeeded on Draftsight, but it only works when the polylines are end to end.

 

What I would like to do is sum up lots of small polylines, so if I have to move them all, it's not very practical.

And by layer, it doesn't work? For example, a function that says: Layer 1: 110 m; Claque 2,337 m, etc...

 

A priori there is no solution on DraftiSight for non-continuous lines, sorry.

 

There remains the solution with AutoCAD.

Ok thank you.

Otherwise, it is possible with SolidWorks to have the total length of a sketch thanks to a small macro:

https://forum.solidworks.com/thread/63630