hm_ce_getfeprojtrip

Returns the connector projection data for a specific layer.

Syntax

hm_ce_getfeprojtrip index layer

Type

HyperMesh Tcl Query Command

Description

Returns the connector projection data for a specific layer. This includes the node ID, element ID, u, v, and list of weld node IDs.

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

This function is useful if the weld element card requires any of the above parameters. The node ID is one of the nodes of the weld, the elem ID is the element that the weld is connecting, and u and v give the coordinates of the weld node with respect to the elements face.

Inputs

index
The index of interest in the array (corresponds to a weld).
layer
0 - Return the dependent layer
1 - Return the independent layer

Example

To get the projection information for the independent layer from the projection data array for index 10:

set proj_data [ hm_ce_getfeprojtrip $index $layer];
set nodeid [ lindex $proj_data 0 ];
set elemid [ lindex $proj_data 1 ];
set u [ lindex $proj_data 2 ];
set v [ lindex $proj_data 3 ];
set weld_nodes [ lindex $proj_data 4 ];

Errors

Incorrect usage results in a Tcl error. To detect errors, you can use the catch command:
if { [ catch {command_name...} ] } {
   # Handle error
}