CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor and other Autodesk products [www.cadforum.cz]
Cesky English Deutsch
Login/Register:
 Visitors: 2594 

CAD tip CAD tip # 7005:

Question CAD 
 %  platform  category 
Q - question

Total length of lines in a drawing (by layer).

A - answer 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. 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 www.cadstudio.cz/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
ACADADTACADMCivil
100% *  CAD 
20.10.2009    14043x  
Comments   Tell a friend

See also:
Tip 10031:Dimension with fixed length of extension lines (fixed dim.line offset)
Tip 10023:Inherit properties in additional continue dimensions.
Tip 9553:Complete thorough PURGE on a single click.
Tip 9063:Flip 3D faces (front/back) in AutoCAD.
Tip 8910:iLogic rule to measure loop length in a sketch.


Back   All CAD Tips All CAD tips&tricks

AutoCAD reports SELECTSIMILAR as an unknown command. « | » Modified drawing name as an automatic field.

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 glossary   



Featuring:
Publish interactive 3D PDF models from AutoCAD, Inventor or Revit with Share3D More info


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