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

CAD tip CAD tip # 9149:

Question CAD 
 %  platform  category 
Q - question

Total area of selected regions or hatches (by layer) - AddArea

A - answer With the free LISP utility CADstudio AddArea you can easily summarize the total area (acreage) of all selected polygons, regions, hatches, circles and other drawing objects with the "area" property in your current drawing.

The areas are also grouped by layers. Optionally, you can export the results to a SDF text file or to the Clipboard. You can also list individual values (areas). The number of decimal places depends on the UNITS command.

Sample output:

Layer-Area:
0 118.1143
PAVEMENTS 438.91
VEGETATION 1311.08
WATER 3010.72
You can download the AddArea utility from www.cadstudio.cz/download. Then run it with the AddArea command.
You can use LISP variables to control the format of text output:
(setq AddAreaNoSub T) ; suppress subtotals
(setq AddArea3rows T) ; layer in 3 rows
(setq AddAreaNoFile T) ; no export to SDF file
(setq AddAreaDecimals 4) ; set decimal places (LUPREC by default)
(setq AddAreaObjTypes "HATCH,LWPOLYLINE") ; filter selection to just these object types
(setq AddAreaSortSub T) ; sort detailed areas from the largest
(setq AddAreaClipMode 1) ; output results to Clipboard (1=incl.layer name, 2=just areas)

Spaces in layer names are replaced by "_".

We offer a similar utility for lengths - see AddLen.

ACADADTACADMCivil
100% *  CAD 
15.3.2013    8935×  

See also:
Tip 9185:Fix problem of Areas on self-intersecting curves in AutoCAD 2013.
Tip 8677:Associative DWG table of line length totals (by layer).
Tip 7916:Searching for hatches with missing Area property.
Tip 6574:Compute total area of selected objects.
Tip 4974:What are the differences between the functions CLEANSCREEN and FULLSCREEN?


Back   All CAD Tips All CAD tips&tricks



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:
Export 3D VRML scenes from AutoCAD and Inventor
VRMLout More info


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