Lisp that caluculates area of polylines on a layer - tweak needed

Lisp that caluculates area of polylines on a layer - tweak needed

mpa-la
Advocate Advocate
350 Views
3 Replies
Message 1 of 4

Lisp that caluculates area of polylines on a layer - tweak needed

mpa-la
Advocate
Advocate

Hello all, someone in the forums wrote us the handy lisp attached.  The way we use it is to click a hatch in a legend, and it calculates the area of the polylines in the drawing that are on that layer, then edits the legend text to show the square feet.  There are two lisps in it for two different scales, TAB and TABB.  I just now realized that it only is calculating the area of polylines, and I need it to also include the area of circles and regions (I can't think of anything else that would have an area, let me know if I forgot anything).  Does LWPOLYLINE get all three kinds of polylines?

 

By the way, I know you can get area from hatches themselves, but we've had issues in the past where they get out of whack, so we prefer using the boundaries that we use to create the hatches.

 

Anyway, what needs to be edited in this to get it to grab all the different entities that would have an area?

 

Thanks in advance!

 

 

0 Likes
351 Views
3 Replies
Replies (3)
Message 2 of 4

hak_vz
Advisor
Advisor

Code you've attached is created by @ronjonp.

Miljenko Hatlak

EESignature

Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
0 Likes
Message 3 of 4

mpa-la
Advocate
Advocate

Thanks hak_vz, I should have put that in my message!

0 Likes
Message 4 of 4

john.uhden
Mentor
Mentor

@mpa-la 

Not to mention that @ronjonp is one of my most highly respected contributors.

And @hak_vz is one of our most diligent historians, and contributors.

John F. Uhden

0 Likes