Display full version of the post: Adding line lengths together

shawcolegate
12.02.2009, 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

rossassociates
12.02.2009, 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 and use tlen.lsp this will do exactly what you want.

Rman
13.02.2009, 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.

Apeiron
13.02.2009, 08:04
Hello,
search on Google after total lenght a lisp routine and you will find this usefull trick.

shawcolegate
13.02.2009, 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

Apeiron
13.02.2009, 12:31
:)) no no nomaybe 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

rossassociates
16.02.2009, 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.