Area measure Lisp

Area measure Lisp

kubastan89
Collaborator Collaborator
23,380 Views
37 Replies
Message 1 of 38

Area measure Lisp

kubastan89
Collaborator
Collaborator

Hi,

I am looking for a lisp to measure hatch area in AutoCAD. I`ve found these two lisps:

https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/a-lisp-file-that-can-read-the-total-...

https://forums.autodesk.com/t5/autocad-land-desktop/how-do-calculate-the-area-of-a-hatch/td-p/157511...

 

but I am looking for a lisp that will insert the area value in each hatch like it does on this video:

https://www.youtube.com/watch?v=h-UoQ7SPjs0&t=269s

 

Of course I could buy the plugin from that video but I am looking for something that is free of charge.

I will be obliged for any help.

0 Likes
Accepted solutions (2)
23,381 Views
37 Replies
Replies (37)
Message 21 of 38

Anonymous
Not applicable

Got it working.

I did not select objects after the TABLE was placed

Ron

 

0 Likes
Message 22 of 38

Anonymous
Not applicable

please send me  Area measure Lisp free of cast

0 Likes
Message 23 of 38

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

@Anonymous

welcome @forums.autodesk.com!

 

>> please send me

Why should anyone send you anything when you can just click here to the (free) files to download it?

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
0 Likes
Message 24 of 38

Anonymous
Not applicable

hi sir how i can download this area lisp.

can you send me on this email.

tazeem224@gmail.com

 

0 Likes
Message 25 of 38

gotphish001
Advisor
Advisor

It's in the solution. Just click on it there and it takes you to where you can download it.



Nick DiPietro
Cad Manager/Monkey

0 Likes
Message 26 of 38

maramuresul
Enthusiast
Enthusiast

Hi, 

 

It's possible to get area in meter square ( I work with mm),  round off  1 or 2 digits (0,00) 

and have the text a certain size.

 

One more thing would be, if I can have a text before generated area something like "A:"  , "area=" etc

 

Thanks

 

Andrei C.

 

0 Likes
Message 27 of 38

Anonymous
Not applicable

Hello Vinay

how can I add text before area?

 

thank you

 

0 Likes
Message 28 of 38

Anonymous
Not applicable

Dear guy @Vinayv4v 

Can you modify this lisp "A2 modify " area/1000000 and put m2 at end. Change font to

1.png

larger than .

Thanks

0 Likes
Message 29 of 38

Anonymous
Not applicable

hi,

anyone can help me? thanks!

0 Likes
Message 30 of 38

Kent1Cooper
Consultant
Consultant

@Anonymous wrote:

....

Can you modify this lisp "A2 modify " area/1000000 and put m2 at end. Change font to

larger than ....


Try changing these parts:

....

  (cons 11 P_center)
  (cons 40 (getvar "textsize"))
  (cons 72 1)
  (cons 73 2)
  (cons 1 (strcat (rtos (vlax-curve-getArea e1))))
)

....

 

like this:

 

....

  (cons 11 P_center)
  (cons 40 YourDesiredHeight); <-- put in a number in drawing units
  (cons 72 1)
  (cons 73 2)
  (cons 1 (strcat (rtos (/ (vlax-curve-getArea e1) 1000000)) " m2"))
)

....

 

Kent Cooper, AIA
Message 31 of 38

Anonymous
Not applicable

Dear @Kent1Cooper 

It is very clear,

Thank you very much,

Best regards

0 Likes
Message 32 of 38

daya94civil
Community Visitor
Community Visitor

how to enter the command in command line to use this lisp?

0 Likes
Message 33 of 38

Kent1Cooper
Consultant
Consultant

The name for an AutoLisp custom-defined command is always the part that immediately follows the C and colon in this part of the code:

(defun C:TheCommandName ..... [the C can be upper- or lower-case]

in the case of the routine at Message 11, A2.  If you're talking about the other accepted solution, the link tells you the command names to use.

Kent Cooper, AIA
0 Likes
Message 34 of 38

mr_hedayet_roni
Observer
Observer

I want to know how to use AutoCad's Arearon lisp to calculate Area in inches and I want to convert it to percentage. Can you please help me with that?

0 Likes
Message 35 of 38

mr_hedayet_roni
Observer
Observer

hi,

pls send me area measure lisp 

0 Likes
Message 36 of 38

Kent1Cooper
Consultant
Consultant

@mr_hedayet_roni wrote:

.... I want to convert it to percentage. ....


Percentage of what?  An area is in square units, but a percentage is just a unitless number.

Also, post a link to where you're getting AREARON.lsp for the right version -- there are several Topics that have or link to or mention it.

Kent Cooper, AIA
0 Likes
Message 37 of 38

steve_MonkeyFlow
Contributor
Contributor

We have a tool for this on our free plugin CADflow - it will run on full AutoCAD 2020 onwards, and AutoCAD LT 2024 onwards.

 

Here's a vodeo that shows how the area tool runs:

CADflow – Adding Room Names and Areas– AutoCAD Blocks and Content Plugin from MonkeyFlow

 

You can download CADflow from the app store here:

CADflow V2 | AutoCAD | Autodesk App Store

 

Hope that helps.

www.monkeyflow.co.uk
0 Likes
Message 38 of 38

steve_MonkeyFlow
Contributor
Contributor

We have included several Area tools in our plugin CADflow which is in the Autodesk App Store, its free and will run on AutoCAD 2020+ and LT 2024+.

Just click on a hatch or polyline, then an attribute and it adds teh area as a field, so if the hatch or ployline changes, the area values updates.

Sorry can't post a link to it as it gets picked up as spam.

 

Howver, here's a video of it running:

CADflow – Adding Room Names and Areas– AutoCAD Blocks and Content Plugin from MonkeyFlow

www.monkeyflow.co.uk
0 Likes