top of page

Obtain components dimensions with hm_getboundingbox

  • Admin
  • Sep 29, 2024
  • 1 min read

In hypermesh getting the values of the panel dimension are important for hand calculations or reporting the comps properties.


*createmarkpanel comps 1  "Select panels"
set complist [hm_getmark comps 1]
foreach comp $complist {
*createmark elems 1 "by component" $comp
	foreach  {x_min y_min z_min x_max y_max z_max } [hm_getboundingbox elems 1 0 0 0] {}
set Xmin $x_min
set Ymin $y_min
set Zmin $z_min
set Xmax $x_max
set Ymax $y_max
set Zmax $z_max
set dimx [expr $Xmax - $Xmin]
set dimy [expr $Ymax - $Ymin]
set dimz [expr $Zmax - $Zmin]
puts "$comp X=$dimx Y=$dimy Z=$dimz"

}


ree

Recent Posts

See All
Spring elements in NASTRAN

In structural analysis, spring elements play a key role in simulating flexible connections, supports, joints, and contact interactions....

 
 
 

1 Comment

Rated 0 out of 5 stars.
No ratings yet

Add a rating
Rigidbodyelement
Jun 24
Rated 5 out of 5 stars.

Thanks for useful tips

Like

© 2023

 
bottom of page