how to get assem name of a component
Altair Forum User
Altair Employee
Answers
-
-
If you want to get it by tcl:
*createmarkpanel comps 1 'pick a comp' set compname [hm_getmarkvalue comps 1 name 1] set assemlist [hm_assemlist \0] while {[string first [set randname [expr rand()]] $assemlist]!=-1} {} set assemlist [string map [list $compname $randname] $assemlist] set assemcomp [lsearch -all -inline -glob $assemlist *\0$randname] foreach item $assemcomp { puts [lindex [split $item \0] end-1] }
1