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
Description
Returns the weld data list (types and IDs) for the given projection array index and weld array index.
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 of 2 and weld array index of 1:
set num_of_projs [ hm_ce_getnumoffeprojinfo ];
foreach proj_idx $num_of_projs {
if { $proj_idx == 2 } {
set num_welds [ hm_ce_getprojfesize $index ];
foreach weld_idx $num_welds {
if { $weld_idx == 1 } {
set weld_data_list [ hm_ce_getprojfe $proj_idx $weld_idx ];
}
}
}
}
To get a specific config and type from the information:
set num_data [ llength $weld_data_list ];
foreach weld $num_data {
set entity [ lindex $weld 0 ];
set id [ lindex $weld 1 ];
# if it is ELEMENTS
if { $entity == 2 } {
set config [ hm_getvalue elements id=$id dataname=config];
set type [ hm_getvalue elements id=$id dataname=type];
}
}
This function 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.