[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.
Report Length and Area Automatically
Tip# 3954 By Alan Thompson On 14-Aug-2012
0
Rated By 0 users Downloaded : 451
Categories : Distance, Area
Software type : AutoCAD 2013
Rename File To : AreaReactor.LSP
Display length and area properties of selected entities in the status bar.

Frequent contributor Alan Thompson is back this month with a nice little AutoCAD routine that's designed to be loaded at startup time, so insert this code into your ACADDOC.LSP file. Once loaded, this program creates a reactor that detects when you select one or more entities with a length and/or area. When these objects are selected, the length and area properties are displayed in the AutoCAD status bar. You do not have to do anything other than select the entity!

There are also two optional commands that go with this routine. Once you have queried an object, type in AreaClip to copy the last set of values to the system clipboard. From here, you can paste this data into any other application (such as Notepad, for example). The other command is AreaInfo, which will copy the last set of values to a CSV file and open it. Typically the file will open in your spreadsheet application (such as Microsoft Excel).

When using this routine, note that self-intersecting polylines generate a different area value than what is generated by AutoCAD, so use this with caution on these types of entities. Also, for a collection of multiple entities that seemingly form a closed area, the area reported is the sum of each entity, not the area contained within them. Always used a closed polyline or spline in this case.

 

Average Rating:
0


User comments
Comment by Mansell,Tom
Posted on 2012-08-15 16:22:19
Does this work for metric plans?


Log In