hm_entitiesassociatedbygroupsmark

Selects entities associated through groups.

Syntax

hm_entitiesassociatedbygroupsmark entity_type input_mark_id output_mark_id ?group_mark_id? ?level?

Type

HyperMesh Tcl Query

Description

Selects entities associated to each other through groups.

Inputs

entity_type
The type of entity to query. Valid values are nodes, elements and components (only elements in components are considered).
input_mark_id
The ID of the mark containing the input entities. Valid values are 1 and 2.
output_mark_id
The ID of the mark containing the isolated output entities which contains only nodes, elements and components. Valid values are 1 and 2.
group_mark_id
The ID of the mark containing the groups to consider for association. Valid values are 0 (default, meaning all groups), 1 and 2.
level
0 – No level down
  • Comps
  • Elems
  • Nodes
1 – One level done
  • Comps -> Elems
  • Elems -> Nodes
  • Nodes
2 – Two levels down
  • Comps -> Elems -> Nodes
  • Elems -> Nodes
  • Nodes
The reverse is performed on the output.

Example

To find nodes, elems and comps associated to comps 1-5 by all groups:

*createmark comps 1 1-5
hm_entitiesassociatedbygroupsmark comps 1 2 0 2

Errors

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

Version History

12.0.110