# Measuring areas

## Recommended Posts

I need to calculate the areas within a set of lines that form a closed area.

1. How do I do that?

2. Do I need to create a polyline around the area, or is lines enough?

##### Share on other sites

You cannot calculate the area bounded by lines, so you will need to use polylines. Check out the BOUNDARY command as this could be used to create closed polylines from your lines. Also have a look at the AutoLISP archive for a routine that will calculate total area from all polylines on a specific layer.

##### Share on other sites

If the shape isn't much complicated, try using the AREA command. Then pick up all the corners (end points) of the shape, one by one, along the perimeter, and hit enter. Although this is a tedious process and doesn't work for curved boundaries, still knowing about it is better!

##### Share on other sites

That should help a lot - Thanks!

##### Share on other sites

I love this forum.

never fails meh.

##### Share on other sites

I love this forum.

never fails meh.

:cat:

##### Share on other sites

It's an interesting question, even if it's old now.

You can do it manually like this:

Command: bo BOUNDARY + ENTER

Select internal point: (Click)

BOUNDARY created 1 polyline

Command: area

Specify first corner point or [Object/Add/Subtract]: o

Select objects: last

Area = 17500000.000, Perimeter = 17000.000

Command: (/ (getvar "area") 1000000.0)

17.5

(This means the area in square meter is 17.5 if the drawing unit is mm)

Or you can make a new button (Command: CUI) with a macro like this:

^C^C-Boundary;\;Area;O;Last;Erase;Last;;(/(getvar "area")1000000.0);

The Lisp part doesn't work in LT (unless you install LT Extender).

Normally you would make a block for room info if you are working with buildings. STATSBYGG in Norway has made a block for room number, function, area etc. that they demand that you use in their projects. They manage "all" public buildings in Norway.

mvh, Kvedja, Kind Regards,

Ragnar Thor Mikkelsen

www.DESIGNDATA.no

##### Share on other sites

Can anyone tell me how can I link block to an area so when I change the size of an area the values in block will update automatically?

##### Share on other sites

A block or a label?

##### Share on other sites

These are the commands you use,

ATTDEF to define the attributes.

This command has the option to use a FIELD as a default value.

In the FIELD dialog, select obect, select your pline, the select Area and formatting if you like.

The problem is that all instances of this block, every insert, will be linked to that one pline you selected.

I did this in Bricscad, but I bet AutoCAD is practically idential.

##### Share on other sites

If you make one block linked to one object, then copy-paste both the block insert and the object, you have a new link between the two copies.

##### Share on other sites

You could use Lee Mac's custom lisp routine called Area Label found here...

http://www.lee-mac.com/arealabel.html

It has a couple of unique features you might find interesting.

##### Share on other sites

Another option is to use this simple lisp routine called FArea available at the CADforum.

##### Share on other sites

Yes I have heard about Bricscad but I know that this option is included in AutoCad. Thanks anyway, I will try this solution.

##### Share on other sites

-------------------------------------

A dwg example.

##### Share on other sites

Ok , I read all posts but I am in a particular situation ,

I am working on an urban planning project , and have lots of small areas and I can not use area command for each small area , is there any other command to calculate all the areas together using for example hatches ?

##### Share on other sites

Lee Mac has a few different Area lisps on his site.

You might want to look at this one first.

http://www.lee-mac.com/arealabel.html

Thanks Lee!

##### Share on other sites

You're looking for a lisp routine that will spit out the sum total of all the areas. One number. Yes?

##### Share on other sites
You're looking for a lisp routine that will spit out the sum total of all the areas. One number. Yes?

yes , exactly . I am checking "lee mac" web site but I am in a little hurry ...

## Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

×   Pasted as rich text.   Paste as plain text instead

Only 75 emoji are allowed.