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

calculate the weight of multiple objects

  • Thread starter Thread starter joe
  • Start date Start date

joe

Guest
Good morning
this is a routine to calculate the weight (in case of steel) of only one solid object that is selected at the request:

(defunc c:pp)
(vl-load-com)
(setq ps 0.00000785)
(setq vol (vla-get-volume (vlax-ename->vla-object (car (entsel))))))
(Sectq pt)
(print (strcat "the weight is kg..." (rtos pt)))
(princ)
)

Is it possible to change it so that you ask me the selection of more objects?

Thank you.
 

Forum statistics

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

Members online

No members online now.
Back
Top