hm_parentcomplist
Returns a list of component IDs or names for the specified elements.
Syntax
hm_parentcomplist list_type elem_ids
Type
HyperMesh Tcl Query
Description
Returns a list of component IDs or names for the specified elements. Returns an empty list if no element IDs are passed.
Inputs
- list_type
- The type of list to return. Valid values are name and ID.
- elem_ids
- The IDs of the elements. These should be passed as an expanded list.
Example
To get the component names for elements 5-8:
hm_parentcomplist names 5 6 7 8
Errors
Incorrect usage results in a Tcl error. To
detect errors, you can use the catch
command:
if { [ catch {command_name...} ] } {
# Handle error
}