# check types of selected elements using tcl
*createmarkpanel elems 1 'Select Elems' 
set elems [hm_getmark elems 1] 
*clearmark elems 1
foreach eid $elems {
    set typename [hm_getentityvalue elems $eid typename 1]
    puts [format "eid=%6d Typename=%s" $eid $typename]
}

Output:

#eid=  9172 Typename=CQUAD4
#eid=  9162 Typename=CQUAD4
#eid=  7855 Typename=CQUAD4
#eid=  6979 Typename=CQUAD4
#eid=  6296 Typename=CQUAD4
#eid=     1 Typename=RBE2

Discover more from Tips and Hints for Aerospace Engineers

Subscribe now to keep reading and get access to the full archive.

Continue reading