hm_entitylist
Returns a list of names or IDs of all entities of the requested type.
Syntax
hm_entitylist entity_type name_or_id ?mode?
Type
HyperMesh Tcl Query Command
Description
Returns a list of names or IDs of all entities of the requested type.
Inputs
- entity_type
- The type of entity to query.
- name_or_id
- The type of list to generate. Valid values are:
- mode
- An optional argument that specifies which entity types are returned:
Example
To get the list of node IDs:
hm_entitylist nodes id
To get the list of component names:
hm_entitylist comps name
Errors
if { [ catch {command_name...} ] } {
# Handle error
}
Version History
2019 - Added new optional mode argument.