How to obtain the area of components
pohan
Altair Community Member
Answers
-
Hi
You can use hm_getmass command.
Thanks
0 -
Altair Forum User said:
Hi
You can use hm_getmass command.
Thanks
Thank you very much. By the way, do you know how to export this result to excel or text file?
0 -
Yes, please try following lines.
set fn [tk_getSaveFile -defaultextension csv];
set fh [open $fn w];
puts $fh 'Mass,Volume,Area';
*createmark elems 1 displayed;
lassign [hm_getmass elems 1] mass volume area;
puts $fh '${mass},${volume},${area}';
close $fh;
0 -
Thank you.
I tried this code but the elems could not be selected so I could not get the result. Could you please verify?
Thanks
0 -
Pohan,
It works fine, please attach your model.
Thanks,
Imoto
0