Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

3D Solid mass and data

2 REPLIES 2
Reply
Message 1 of 3
wtl07
286 Views, 2 Replies

3D Solid mass and data

Hi everyone,

can u show me how to get the complete list of a 3D solid part?
especially it's volume, mass, center of mass, and principal inertial...

when i use (car (nentsel)), it return a list of 'hair wire'..
so, please...

thanks!


Regards,
woon
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: wtl07

isnt massprop command enough?

Well, try this. Maybe this could be of help.


(defun c:dump (/ index ent_select)
(setq index 0)
(setq ent_select (ssname (ssget) 0))
(setq vl_ent_properties (vlax-ename->vla-object ent_select))
(dump vl_ent_properties)
)

(defun dump (vl_ent_properties)
(cond
((= (type vl_ent_properties) 'ENAME)
(vlax-dump-object (vlax-ename->vla-object vl_ent_properties) T)
)
((= (type vl_ent_properties) 'VLA-OBJECT)
(vlax-dump-object vl_ent_properties T)
)
)
)

After this, press F2. Youll find all the goodies there, I think. This works to all entities.
Message 3 of 3
wtl07
in reply to: wtl07

zaldy, Thanks a lot!!! its help..

cheers,
woon

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost