CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] ARKANCE | CONTACT - CZ | SK | EN | DE
Over 1.096.000 registered users (EN+CZ). AutoCAD tips, Inventor tips, Revit tips. Try the new precise Engineering calculator and the updated Barcode generator. New AutoCAD 2026 commands and variables.

CAD tip CAD tip # 7005:

Question

CAD 
 %  platform  category 
A
With the free LISP utility CADstudio AddLen you can summarize the total length of all selected lines, arcs, polylines, circles, splines and other curves in your current drawing.

The lengths are also grouped by layers. You can optionally export the results to a SDF text file or to the Clipboard. Since version 1.2 you can also list individual values. Decimal places depend on the UNITS command.

Sample output:

Layer-Length:
0 118.1143
POWER 438.91
PHONE 311.08
LAN 3010.72

You can download the AddLen utility from DL Download. Run it with the AddLen command.

You can use LISP variables to control the format of text output:
(setq AddLenNoSub T) ; suppress subtotals
(setq AddLen3rows T) ; layer in 3 rows
(setq AddLenNoFile T) ; no export to SDF file
(setq AddLenDecimals 4) ; preset number of dec.places, default = by LUPREC
(setq AddLenSortSub T) ; sort detailed lengths, longest first
(setq AddLenClipMode 1) ; copy to Clipboard (T/1=incl.layer name, 2=just lengths)

Spaces in layer names are replaced by "_".

The AddLen2 command lists also arc lengths (lengths by given radius).

ACADADTACADMCivil
100% *CAD
20.10.2009    46449×  

See also:
Tip 14608:How can the same DWG show dimensions for the Germans and French with a decimal comma, and for the British and Americans with a point?
Tip 14593:Revit is slow on a new workstation on structural and steel connections projects.
Tip 14454:How to hide dimensions with zero- or small length?
Tip 14436:Conversion of arc polylines to straight-segment polylines (e.g. for GIS).
Tip 14300:How to convert my DWG drawing to a hand-drawn, sketched appearance even in AutoCAD LT?


Back    All CAD Tips



Have we helped you? If you want to support the CAD Forum web service, consider buying one of our CAD applications, or our custom software development offerings, or donating via PayPal (see above). You may also add a link to your web - like this "fan" link: CAD Forum - tips, utilities, blocks for Autodesk products
CAD: 
OS: 
Categ: 
Text:
 FAQ
  



Featuring:
Use Google Earth images in your AutoCAD projects with the Plex.Earth Tools More info


Please use these tips at your own risk.
ARKANCE is not responsible for possible problems that may occur as a result of using any of these tips.
TOPlist