hm_ce_getprojfe

Returns the weld data list (types and IDs) for the given projection array index and weld array index.

Syntax

hm_ce_getprojfe proj_idx weld_idx

Type

HyperMesh Tcl Query Command

Description

Returns the weld data list (types and IDs) for the given projection array index and weld array index.

This should only be called from within a connector-registered property script (which is executed during connector FE realization). The projection data this function relies upon is removed immediately after connector FE realization.

The list will contain all the welds and rigids created for that layer.

Inputs

proj_idx
The index of interest from the projection data array.
weld_idx
The index of interest from the weld data array.

Example

To get the type of weld element and its ID for projection array index 2 and weld array index 1:

set num_projs [hm_ce_getnumoffeprojinfo];
for {set pidx 0} {$pidx < $num_projs} {incr pidx} {
    if { $pidx == 2 } {
        set num_welds [hm_ce_getprojfesize $pidx];
        for {set widx 0} {$widx < $num_welds} {incr widx} {
            if {$widx == 1} {
                set weld_data_list [hm_ce_getprojfe $pidx $widx];
            }
        }
    }
}

To get a specific config and type from the information:

set num_data [llength $weld_data_list];
for {set didx 0} {$num_data < $didx} {incr didx} {
    set entity [lindex $weld_data_list 0];
    set id [lindex $weld_data_list 1];
    # If elements
    if {$entity == 2} {
        set config [hm_getvalue elems id=$id dataname=config];
        set type [hm_getvalue elems id=$id dataname=type];         
    }
}