top of page

Obtain components dimensions with hm_getboundingbox

Admin

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"

}



Recent Posts

See All

Comparison CROD, CBAR and CBEAM

CROD, CBAR and CBEAM are one of the most popular 1d elements in Nastran. Reflecting real behaviour of structural is crucial for FEM. So,...

Reading a csv file by using tcl

Reading a csv file procedure is similar to the other programming languages. # Open the CSV file in read mode set filePath...

Comments

Rated 0 out of 5 stars.
No ratings yet

Add a rating

© 2023

 
bottom of page