rusty Posted July 10, 2006 Share Posted July 10, 2006 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? I use AutoCad Map 2000i Thanks in advance Quote Link to comment Share on other sites More sharing options...
CADTutor Posted July 10, 2006 Share Posted July 10, 2006 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. http://cadtutor.net/forum/viewtopic.php?t=1505 Quote Link to comment Share on other sites More sharing options...
fahim108 Posted July 10, 2006 Share Posted July 10, 2006 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! Quote Link to comment Share on other sites More sharing options...
rusty Posted July 12, 2006 Author Share Posted July 12, 2006 That should help a lot - Thanks! Quote Link to comment Share on other sites More sharing options...
slimjramirez Posted August 17, 2006 Share Posted August 17, 2006 I love this forum. never fails meh. Quote Link to comment Share on other sites More sharing options...
tzframpton Posted August 17, 2006 Share Posted August 17, 2006 I love this forum. never fails meh. :cat: Quote Link to comment Share on other sites More sharing options...
Raggi_Thor Posted August 29, 2007 Share Posted August 29, 2007 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 Quote Link to comment Share on other sites More sharing options...
Hefron Posted March 20, 2012 Share Posted March 20, 2012 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? Quote Link to comment Share on other sites More sharing options...
ReMark Posted March 20, 2012 Share Posted March 20, 2012 A block or a label? Quote Link to comment Share on other sites More sharing options...
Raggi_Thor Posted March 20, 2012 Share Posted March 20, 2012 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. Then define your block. 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. Quote Link to comment Share on other sites More sharing options...
Raggi_Thor Posted March 20, 2012 Share Posted March 20, 2012 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. Quote Link to comment Share on other sites More sharing options...
ReMark Posted March 20, 2012 Share Posted March 20, 2012 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. Quote Link to comment Share on other sites More sharing options...
ReMark Posted March 20, 2012 Share Posted March 20, 2012 Another option is to use this simple lisp routine called FArea available at the CADforum. http://www.cadforum.cz/cadforum_en/qaID.asp?tip=5387 Quote Link to comment Share on other sites More sharing options...
Hefron Posted March 20, 2012 Share Posted March 20, 2012 Yes I have heard about Bricscad but I know that this option is included in AutoCad. Thanks anyway, I will try this solution. Quote Link to comment Share on other sites More sharing options...
Raggi_Thor Posted March 20, 2012 Share Posted March 20, 2012 ------------------------------------- Quote Link to comment Share on other sites More sharing options...
Raggi_Thor Posted March 20, 2012 Share Posted March 20, 2012 A dwg example. BcadAreaLinkBlock.dwg Quote Link to comment Share on other sites More sharing options...
Ridation Posted December 19, 2012 Share Posted December 19, 2012 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 ? Quote Link to comment Share on other sites More sharing options...
Dadgad Posted December 19, 2012 Share Posted December 19, 2012 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! Quote Link to comment Share on other sites More sharing options...
ReMark Posted December 19, 2012 Share Posted December 19, 2012 You're looking for a lisp routine that will spit out the sum total of all the areas. One number. Yes? Quote Link to comment Share on other sites More sharing options...
Ridation Posted December 19, 2012 Share Posted December 19, 2012 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 ... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.