List area of hatching lisp?

~Jeff~

Usenet Archive
Joined
Jan 8, 2004
Messages
27
Reaction score
0
Does any have or know of a lisp that gives you the area of hatching by selecting the hatch itself (when no boundary is present)? Or is this type of thing not possible in AutoCAD?

Detail:
I have a series of hatches on a map drawing, which depending by color indicates road, building and other. The engineer wants me to tell him the square footage of each group (ex. total square footage of road, total square footage of building). We received this drawing from a the client. There are quite a few hatch areas (tiny, small & large) all without boundaries. I can freeze all but one of the hatch area layers. I'd like to be able to select all the hatch and have AutoCAD tell me the total area of the selected hatched areas ....if it is even possible.

I have tried looking for a lisp, but no luck

Thanks for any help in advance
 
Hi Jeff,

Try HatchB, from www.jtbworld.com, this lisp will recreate the hatch boundary, and after that you can obtain the area of the plines

Saludos

Marco Jacinto
 
Jeff,
I do not think there is a direct method to get the areas covered by hatches. Did you try to read any extended data that may have been saved with those hatches? If you do you may notice something like (72 . 1) (10 23406.8 -7387.89 0.0) (11 26040.1 -7387.89 0.0) which defines one boundary. I am not sure if this dependant on the way those hatches were made. However that is a boundary which you can assemble it with other boundaries and create it then read its area.

Nabil.
 
Hi Jeff,

If you are willing to consider a third party tool, there is a solution to this in our GeoTools program. The GT_HATCHBOUND command re-creates hatch boundaries from hatch objects as closed polylines. The area of these closed polylines will give you the area enclosed by the hatch object.

You can download a eval version at this URL:

www.4d-technologies.com/geotools

If you need a more tweaked solution, email me with more info.

Regards
Rakesh

~Jeff~ said:
Does any have or know of a lisp that gives you the area of hatching by selecting the hatch itself (when no boundary is present)? Or is this type of thing not possible in AutoCAD?

Detail:
I have a series of hatches on a map drawing, which depending by color indicates road, building and other. The engineer wants me to tell him the square footage of each group (ex. total square footage of road, total square footage of building). We received this drawing from a the client. There are quite a few hatch areas (tiny, small & large) all without boundaries. I can freeze all but one of the hatch area layers. I'd like to be able to select all the hatch and have AutoCAD tell me the total area of the selected hatched areas ....if it is even possible.

I have tried looking for a lisp, but no luck

Thanks for any help in advance
 
I already have a routine that does what your saying. I was hoping to save time by eliminating the steps of boundary re-creation then listing them individually. It can be very time consuming to re-boundary 40 or more hatches and then list each one for the area ...then add the areas together. I was hoping there was such a monster that would give you the area of the selected hatches ...a one shot deal.

Thanks anyway,

~Jeff~
 
Have you tried hatchb.lsp from my site? You have to get the latest version that is online there. The total area is returned even if you select multiple hatches.
 

Latest threads

Back
Top