TCL:how to distinguish large solid comp and sheet matal comp with tcl scripts?
my model have many comps, some are sheet matal comp which can extract middle surface and use shell element; some are casting or structure which are not suitable to use shell. So i want use tcl scripts to distinguish and put them in different assembly. thanks
Answers
-
try this command:
set thick [expr double([lindex [lindex [hm_getgeometricthinsolidinfo solids 1 mode=simple] 0] 0])]
in the below example, solid 1 is the thin solid, and solid 2 is the sphere.
if {[catch {set thick [expr double([lindex [lindex [hm_getgeometricthinsolidinfo solids 1 mode=simple] 0] 0])]}]} {
#it is a thin solid with the specified thickness
} else {
# it is a solid
}
1 -
Adriano A. Koga_21884 said:
try this command:
set thick [expr double([lindex [lindex [hm_getgeometricthinsolidinfo solids 1 mode=simple] 0] 0])]
in the below example, solid 1 is the thin solid, and solid 2 is the sphere.
if {[catch {set thick [expr double([lindex [lindex [hm_getgeometricthinsolidinfo solids 1 mode=simple] 0] 0])]}]} {
#it is a thin solid with the specified thickness
} else {
# it is a solid
}
thanks a lot . I will try it .
0