🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

TCL:how to distinguish large solid comp and sheet matal comp with tcl scripts?

User: "kai zhang"
Altair Community Member
Updated by kai zhang

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 

Find more posts tagged with

Sort by:
1 - 2 of 21
    User: "Adriano_Koga"
    Altair Employee
    Updated by Adriano_Koga

    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.

    image

     

    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

    }
              
        

    User: "kai zhang"
    Altair Community Member
    OP
    Updated by kai zhang

    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.

    image

     

    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 .