
CAD discussion forum - ask any CAD-related questions here, share your CAD knowledge on AutoCAD, Inventor, Revit and other Autodesk software with your peers from all over the world. To start a new topic, choose an appropriate forum.
Please abide by the
rules of this forum.
This is a peer-to-peer forum. The forum doesn't replace the official direct technical support provided by ARKANCE for its customers.
How to post questions: register or login, go to the specific forum and click the NEW TOPIC button.
Author |
Topic Search Topic Options
|
John Connor
Senior Member
Joined: 01.Feb.2011
Location: United States
Using: AutoCAD 2018
Status: Offline
Points: 7175
|
Topic: Compute the area of more selected surfaces Posted: 24.Jun.2011 at 15:59 |
The routine does not allow for bad geometry. What can I say? I did not write it.
I did however test it further by purposely overlapping hatched objects and it still worked. Unfortunately your situation is a bit different.
|
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."
<<AutoCAD 2015>>
|
 |
delftse_student
Newbie
Joined: 24.Jun.2011
Location: Netherlands
Using: Autocad 2010
Status: Offline
Points: 8
|
Posted: 24.Jun.2011 at 15:55 |
I understand that, but isn't it possible then to just measure the hatched area?
I mean, this is what I am trying to do, not to measure the enclosed polyline surface as I expect polylines might not be correct, but to measure the hatch areas.
|
 |
John Connor
Senior Member
Joined: 01.Feb.2011
Location: United States
Using: AutoCAD 2018
Status: Offline
Points: 7175
|
Posted: 24.Jun.2011 at 15:52 |
One or more of your closed polylines is/are overlapping itself.
|
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."
<<AutoCAD 2015>>
|
 |
delftse_student
Newbie
Joined: 24.Jun.2011
Location: Netherlands
Using: Autocad 2010
Status: Offline
Points: 8
|
Posted: 24.Jun.2011 at 15:46 |
it says:
Cannot calculate the area of a self intersecting curve. Select objects: _.area *Invalid selection* Expects a point or Last ; error: Function cancelled
|
 |
John Connor
Senior Member
Joined: 01.Feb.2011
Location: United States
Using: AutoCAD 2018
Status: Offline
Points: 7175
|
Posted: 24.Jun.2011 at 15:34 |
Alright. I downloaded POLYAREA.lsp and tested it. It seemed to work for me. I had ten closed polylines that were hatched and I windowed all ten and the lisp routine returned the sum of all their areas in a dialog box. What happens when you use it?
|
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."
<<AutoCAD 2015>>
|
 |
John Connor
Senior Member
Joined: 01.Feb.2011
Location: United States
Using: AutoCAD 2018
Status: Offline
Points: 7175
|
Posted: 24.Jun.2011 at 15:08 |
So let's say you have ten hatched areas. You want to window all ten and get a sum of their combined areas right?
|
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."
<<AutoCAD 2015>>
|
 |
delftse_student
Newbie
Joined: 24.Jun.2011
Location: Netherlands
Using: Autocad 2010
Status: Offline
Points: 8
|
Posted: 24.Jun.2011 at 14:56 |
I had tried the polyarea, and the list. They are not working...
With sumaploch, just like with the list, if i take hatches one by one i get a total. But there are many hatches (areas) i need to pick so if i make a frame and select all of them at once, then the application fails!
I am running short of ideas...
C
|
 |
delftse_student
Newbie
Joined: 24.Jun.2011
Location: Netherlands
Using: Autocad 2010
Status: Offline
Points: 8
|
Posted: 24.Jun.2011 at 14:48 |
Thanks a lot John for your time and patience I will try the polyarea lsp.
Cheers,
|
 |
John Connor
Senior Member
Joined: 01.Feb.2011
Location: United States
Using: AutoCAD 2018
Status: Offline
Points: 7175
|
Posted: 24.Jun.2011 at 14:47 |
Another option. as suggested by Lynn Allen of AutoDesk.
Need to find the area of a hatch pattern? Don't forget the age old LIST
command - simply select the crosshatching and AutoCAD will list the
total area.
Last one. See this thread found in the AUGI forum. Pay particular attention to the lisp routines written by fixo.
http://www.augi.com/forums/showthread.php?s=cd9b682af4927d8de1dfe73c44bae094&t=23362
Edited by John Connor - 24.Jun.2011 at 14:51
|
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."
<<AutoCAD 2015>>
|
 |
John Connor
Senior Member
Joined: 01.Feb.2011
Location: United States
Using: AutoCAD 2018
Status: Offline
Points: 7175
|
Posted: 24.Jun.2011 at 14:36 |
Sorry about that. 99.99% of the time a free lisp routine is available not just a tip. But, if you search that same site I'm sure you'll find something that works for you. It is a good resource.
You can try the POLYAREA.lsp found here:
http://www.turvill.com/t2/free_stuff/index.htm
Edited by John Connor - 24.Jun.2011 at 14:44
|
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."
<<AutoCAD 2015>>
|
 |