hm_getentityarray

Returns a list containing template/data name values for a single entity.

Syntax

hm_getentityarray entity_type entity_name_or_id data_name ?search_type?

Type

HyperMesh Tcl Query

Description

This command returns a list containing template/data name values for a single entity.

Inputs

entity_type
The type of entity to query. Valid values are assemblies, bags, beamsects, components, contactsurfs, controlvols, desvarlinks, elements, groups, loadsteps, laminates, outputblocks, plies and sets.
entity_name_or_id
The name or ID of the entity.
data_name
The type of list being requested for the specified entity_type. Valid values for each entity_type are:
assemblies
assemblies, components, multibodies
bags
all HyperMesh entities
beamsects
shell sections
equation_DependentVertex, equation_IndependentCount, equation_IndependentVertices, equation_UnparsedEquation, equation_VariableCount, equation_Variables, part_FinalFlangeLength, part_InitialFlangeLength, part_Name, part_NonFlangeLength, part_Thickness, part_ThicknessMaximum, part_ThicknessMinimum, part_VertCount, part_Vertices, shell_VariableInitials, shell_VariableMaxima, shell_VariableMinima, shell_VariableNames, shell_VertexYInitials, shell_VertexZInitials, shell_VertexYMaxima, shell_VertexZMaxima, shell_VertexYMinima, shell_VertexZMinima
solid sections
solid_NodeCords, solid_Quad4Nodes, solid_Quad8Nodes, solid_Tria3Nodes, solid_Tria6Nodes
standard sections
standard_ParameterInitials, standard_ParameterMaxima, standard_ParameterMinima
results
results_areaEnclosed
components
connectors, elements, lines, nodes, points, solids, surfaces
contactsurfs
elements, face_indices, reversecode
controlvols
elemids, refnodes
ddvals
rangeindex, values
designvars
componentlist, laminatelist, propertylist
desvarlinks
coeff, desvarlist, tableentrylist
dequations
string
dobjrefs
loadsteplist
dvprels
coeff, desvarlist, tableentrylist
elements
nodes
rbe3 elements
independentcoeffs, independentdof, independentnodes
rigidlink elements
dependentnodes
equations
independentcoeffs, independentdofs, independentnodes
groups
elements, mastercomponentlist, mastercontactsurflist, mastersetlist, slavecomponentlist, slavecontactsurflist, slavesetlist
loadsteps
groups, loadcollectors, outputblocks
laminates
interfacepairplyids, laminates, plies
opticonstraints
loadsteplist
opticontrols
nastran_int_controls, nastran_real_controls, nastran_toggles
optiresponses
attribute1_list, coordinatetypelist, desvarlist, elemlist, functiondesvarlist, functiondvprellist, functionloadsteplist, functionnodelist, functionresponselist, functiontableentrylist, loadsteplist, loadstepweightlist, materiallist, nodelist, modes, plylist, propertylist, weights
outputblocks
assemblies, components, elements, groups, materials, nodes, properties, sets, systems
plies
sets
sets
assemblies, components, elements, ellipsoids, materials, mbjoints, mbplanes, multibodies, nodes, properties, sets
formula sets (style=2)
by, clauseentitytype, clauseentitytypename, clausetype, end, exceptids, exceptidsmax, ids, idsmax, start
search_type
By default, HyperMesh searches for entities by name, and if the name is not found, it then searches by ID. This option allows you to specify how the search for an entity should be conducted. Valid values are:
-byname - Search only by name.
-byid - Search only by ID.

Examples

To get the list of nodes belonging to node set set1:

hm_getentityarray sets set1 nodes

To get the list of optimization responses in bag ossetup1:

hm_getentityarray bags ossetup1 optiresponses

To get the list of optimization table entries in design variable link dlink2_1:

hm_getentityarray desvarlinks dlink2_1 tableentrylist

Errors

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