Print Page | Close Window

Adding line lengths together

Printed From: CAD Forum
Category: EN
Forum Name: AutoCAD
Forum Description: Discussion about AutoCAD and AutoCAD LT, viewers, DWG and DWF formats, Design Review, AutoCAD 360, add-ons
URL: https://www.cadforum.cz/forum_en/forum_posts.asp?TID=1668
Printed Date: 17.Apr.2026 at 08:58


Topic: Adding line lengths together
Posted By: shawcolegate
Subject: Adding line lengths together
Date Posted: 12.Feb.2009 at 17:21
Hello

We are working on some cad drawings where we have lots of lines, (thousands) which need to be added together to find total lengths.

At the moment we have just been clicking the line and viewing the properties and also using the list command to find the lengths then putting these numbers into a spreadsheet but this is very time consuming.

Does anyone know of an easier way to do this?

Thanks



Replies:
Posted By: rossassociates
Date Posted: 12.Feb.2009 at 17:50
Which AutoCAD are you using?

Do you have access to Architectural CAD?

Alternatively go to here http://www.turvill.com/t2/free_stuff/index.htm - http://www.turvill.com/t2/free_stuff/index.htm and use tlen.lsp this will do exactly what you want.


Posted By: Rman
Date Posted: 13.Feb.2009 at 02:09
Try one of these:
 
1)-Polyline edit (PEDIT), type PE at command and select object (line) to be
added together..> ....Select 'Join'> select all lines> enter.
(but make sure all the lines are need to be the same elevation).
 
2)- Digitize all lines with 'Polyline' command. Use 'endpoint' osnap to captured the line length. Then do 'List'.
 
good luck.
Rman.


Posted By: Apeiron
Date Posted: 13.Feb.2009 at 08:04

Hello,

search on Google after total lenght a lisp routine and you will find this usefull trick.



-------------
Always is something new to learn ....
for kids :))) http://www.prizee.com/?refer=Apeiron - http://www.prizee.com/?refer=Apeiron


Posted By: shawcolegate
Date Posted: 13.Feb.2009 at 12:19
Hi, thanks for your help.
I have taken the code for tlen as text file then re-named to .lsp
In Autocad 2009 this apparently loads using appload but when I type tlen at command line it does not run, any ideas, is there something I am not doing right? is tlen the right prompt to type? I have not used autolisp routines before so struggling a bit. Is 2009 too recent?
Cheers


Posted By: Apeiron
Date Posted: 13.Feb.2009 at 12:31
:)) no no no
maybe is not the prompter command. if you are sure this is the command try to type c: xxxxxx.lsp maybe it's working like this
if not please send me by email at bpoleuca@yahoo.com


-------------
Always is something new to learn ....
for kids :))) http://www.prizee.com/?refer=Apeiron - http://www.prizee.com/?refer=Apeiron


Posted By: rossassociates
Date Posted: 16.Feb.2009 at 15:40
You can either define the command inline, with all of the text, just cut and paste it onto the command line or if you have created a .lsp you will need to load it, at least once.



Print Page | Close Window