Area measure Lisp

Area measure Lisp

kubastan89
Collaborator Collaborator
22,069 Views
32 Replies
Message 1 of 33

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)
22,070 Views
32 Replies
Replies (32)
Message 21 of 33

Anonymous
Not applicable

Got it working.

I did not select objects after the TABLE was placed

Ron

 

0 Likes
Message 22 of 33

Anonymous
Not applicable

please send me  Area measure Lisp free of cast

0 Likes
Message 23 of 33

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 33

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 33

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 33

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 33

Anonymous
Not applicable

Hello Vinay

how can I add text before area?

 

thank you

 

0 Likes
Message 28 of 33

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 33

Anonymous
Not applicable

hi,

anyone can help me? thanks!

0 Likes
Message 30 of 33

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 33

Anonymous
Not applicable

Dear @Kent1Cooper 

It is very clear,

Thank you very much,

Best regards

0 Likes
Message 32 of 33

daya94civil
Community Visitor
Community Visitor

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

0 Likes
Message 33 of 33

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