*findbetween

Finds entities that are between/connect other entities.

Syntax

*findbetween find_entity_type between_entity_type between_mark_id function numbers output_mark_id

Type

HyperMesh Tcl Modify Command

Description

Finds entities that are between/connect other entities.

Inputs

find_entity_type
The entity types to find. Valid values are nodes and connectors.
between_entity_type
The entity types that the find entities are between.
  • If find_entity_type is nodes, valid values are elems and comps.
  • If find_entity_type is connectors, valid values are surfs, elems, tags, assems and comps.
between_mark_id
The mark ID containing the between entities. Valid values are 1 and 2.
function
Currently only a value of 0 is supported. This finds connectors between surfs, elems, tags, assems or comps.
numbers
A flag that determines if the numbers of the found entities will be turned on after they are found.
  • 0 - Off
  • 1 - On
output_mark_id
The mark ID containing the found entities. Valid values are 1 and 2.

Example

To find connectors between components 1 and 2:
*createmark components 1 "by id only" 1 2
*findbetween connectors comps 1 0 1 2
To find nodes between components 1 and 2:
*createmark components 1 "by id only" 1 2
*findbetween nodes comps 1 0 1 2

Errors

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