[Search tip detail and code files using keywords, tip number, author name, etc ]
    For tip to function correctly, you must ensure that the downloaded file name matches the file name
    displayed in the Rename File To field. Please rename downloaded files when necessary.
Calculate Total Length
Tip# 3488 By Robert Zipprich On 10-Sep-2010
Rated By 1 users Downloaded : 12452
Categories : Distance
Software type : AutoCAD 2011
Rename File To : Addline.LSP
Find the total length of any number of lines, arcs, and/or polylines.

This routine from Robert Zipprich will return the total length of any number of lines, arcs, and/or polylines that you select. Load the LISP file and type in the command AddLine. Select the desired entities, then press Enter. The routine will tell you the total length of the supported entities and the length of each individual entity, both at the precision defined in the Units command. It will also give you a notice regarding any entities that were filtered out. Robert's code is also a good start if you want to add the ability to include other entity types such as Mline, Spline, or even Circle objects.


Average Rating:

User comments