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:
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
}