How to calculate the total length of multiple lines

How to calculate the total length of multiple lines

veloster
Participant Participant
846,104 Views
76 Replies
Message 1 of 77

How to calculate the total length of multiple lines

veloster
Participant
Participant

Hi!
I would like to know if it's possible to have the total length of different lines by selecting them in a drawing?
Those lines are all separated and it will take forever to do it manually on a calculator 🙂
Thx!

Accepted solutions (2)
846,105 Views
76 Replies
Replies (76)
Message 2 of 77

nestly2
Mentor
Mentor
Accepted solution

Welcome to the Autodesk forums.

 

AutoCAD doesn't have anything like that built in, but it's easily done with TLEN.lsp (Total LENgth of selected objects)

http://www.turvill.com/t2/free_stuff/tlen.lsp

 

If you're not familiar with how to use lisp, simply copy/paste (CTRL+V) ALL the text and characters in the above link into your command line and press Enter, then type TLEN into the command line and follow the command prompt (select the objects)  Note using this method, the lisp is only loaded for the current session, if you want it to be a permanent feature, Add it to the Startup Suite or the acaddoc.lsp file.

 

Message 3 of 77

veloster
Participant
Participant
Thanks! Works perfectly!
0 Likes
Message 4 of 77

Kent1Cooper
Consultant
Consultant

There are several additional routines that will do that here.

Kent Cooper, AIA
Message 5 of 77

braudpat
Mentor
Mentor

 

Hello from France

 

Welcome to the Autodesk/AutoCAD Forums !

 

I am using since a long time ago this nice French routine : TLENGTH

which is running on : LINE , POLYLINE , LWPOLYLINE , ARC , CIRCLE , ELLIPSE , SPLINE , MLINE , REGION , MPOLYGON

You can remove easily some entities from the filter inside the routine ... 

 

Thks to Patrick_35 for this beautiful routine ...

 

 

Patrice ( Supporting Troops ) - Autodesk Expert Elite
If you are happy with my answer please mark "Accept as Solution" and if very happy please give me a Kudos (Felicitations) - Thanks

Patrice BRAUD

EESignature


Message 6 of 77

ajahmadi
Explorer
Explorer

working better than what I expected.

Thanks

Message 7 of 77

Anonymous
Not applicable

There's "MeteorSpec" plug-in that calculates the summarized lengths of polylines.  Look at Autodesk Exchange apps. 

https://apps.exchange.autodesk.com/ACD/en/Detail/Index?id=appstore.exchange.autodesk.com:meteorspect...

 

0 Likes
Message 8 of 77

Anonymous
Not applicable
thats perfect
0 Likes
Message 9 of 77

Anonymous
Not applicable

How do you Add it to the Startup Suite or the acaddoc.lsp file?

0 Likes
Message 10 of 77

Patchy
Mentor
Mentor

Appload command, and look for the suitcase icon, add it in there.

Message 11 of 77

Anonymous
Not applicable
Thanks for the help. Worked great.
0 Likes
Message 12 of 77

Anonymous
Not applicable

when i select the lines and press enter nothing happens.help..

0 Likes
Message 13 of 77

Anonymous
Not applicable

the command is not working for me.when select the lines and press enter nothing happens.any idea why?my cad is not the full version.not activated.mayb thas y?

0 Likes
Message 14 of 77

Kent1Cooper
Consultant
Consultant

@Anonymous wrote:

....my cad is not the full version....mayb thas y?


If by that you mean you are using AutoCAD LT, that would be the reason.  It does not have AutoLisp capability.

Kent Cooper, AIA
0 Likes
Message 15 of 77

yosephk
Advocate
Advocate

Click Analyze tab,Inquiry panel,Add Distances.

Windows 10 Pro x 64
16 GB Ram
Intel Xeon E3-1220 V2 @ 3.1 GHz
NVIDIA Quadro 600
Civil 3D 2019
0 Likes
Message 16 of 77

Anonymous
Not applicable

thank, it works very nice..............

0 Likes
Message 17 of 77

Anonymous
Not applicable

Well done it woks very well. Cheers

0 Likes
Message 18 of 77

Anonymous
Not applicable

Thank you. Just what I needed.

Message 19 of 77

Anonymous
Not applicable
Very nice thank you so much..
0 Likes
Message 20 of 77

wisedrawing
Collaborator
Collaborator

for accumulative lengths by picking points along the way:

 

Just searched this little gem out:

 

TLENGTH - PICK FIRST POINT - THEN SELECT MULTIPLE AND CLICK AWAY - RIGHT CLICK TO END = TOTAL LENGTH

 

this is brilliant - no lisp or other complex workarounds

 

well done Pat

 

Darren

0 Likes