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

CAD tip CAD tip # 9149:

Question CAD 
 %  platform  category 
Q - question

Total area of selected regions or hatches (by layer)

A - answer With the free LISP utility CADstudio AddArea you can easily summarize the total area (acreage) of all selected polygons, regions, hatches 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. 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

Spaces in layer names are replaced by "_".

We offer a similar utility for lengths - see AddLen.

ACADADTACADMCivil
100% *  CAD 
15.3.2013    6638×  
Comments   Tell a friend

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

Arrowheads or other parts of dimensions are not printed. « | » Batch publishing to PDF uses different margins than single prints.

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:
Save your floating licenses (NLS) consumed by inactive users - free unused licenses with
LogOff 2006 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