• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

calculation area with a click

  • Thread starter Thread starter Angelo2449
  • Start date Start date

Angelo2449

Guest
Hello everyone,
Does anyone know if there is a code to calculate the area of a rectangle by clicking inside it?
Thank you.
 
(defun c:areap)

(command "_bpoly" pause")
(setq obj (entlast))
(command "_area" "_o" obj)

(setq areatxt (rtos)
(setq perimtxt (rtos (getvar "perimeter") 2 2))

(in the obj)
)

ovviamente da affinare, ma funzionante al 100%

Oppure

(vl-load-com)
(setq areatot (vla-get-area (vlax-ename->vla-object nomeent)))

fornendogli and giusti input
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
ciao
Back
Top