TCL:how to distinguish large solid comp and sheet matal comp with tcl scripts?
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