hm_nodelist

Returns the node IDs for the specified element.

Syntax

hm_nodelist elem_id ?index_or_order?

Type

HyperMesh Tcl Query

Description

Returns the node IDs for the specified element. Optionally, query specific nodes using the index_or_order argument as described below.

Inputs

elem_id
The ID of the element to query.
index_or_order
There are two possible behaviors of this argument:
The first behavior returns nodes of specific 2D edges or 3D faces. A value of 0 returns all nodes. A value between 1 and the number of 2D edges/3D faces returns the nodes for that edge/face.
The second behavior applies to second order elements. A value of 'all' returns all nodes. A value of 'corner' returns only corner nodes, and a value of 'midside' returns only midside nodes.
The nodes are always returned in order as
corner1 midside1 corner2 midside2 ... midsideN-1 cornerN
.

Examples

To get the nodes for element 100:

hm_nodelist 100

or

hm_nodelist 100 0

or

hm_nodelist 100 all

To get the nodes for element 100 face 2:

hm_nodelist 100 2

To get the midside nodes for element 100:

hm_nodelist 100 midside

Errors

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