CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products []
CZ | EN | DE
Login or
  Visitors: 7631
Plex.Earth connects AutoCAD and Google Earth

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:

0 118.1143
WATER 3010.72
You can download the AddArea utility from 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.

100% *  CAD 
15.3.2013    16440×  

See also:
Tip 13040:iLogic - display information about complexity of an Inventor part.
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.

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 glossary   

Export 3D VRML scenes from AutoCAD and Inventor
VRMLout More info

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