hm_gettargetentitiesfromset

Gets the list of entity IDs of a particular entity selected by the marked sets.

Syntax

hm_gettargetentitiesfromset setmark=<value> targettype=<value> ?directflag=<value>?

Type

HyperMesh Tcl Query Command

Description

This command gets the list of entity IDs of a particular entity selected by the marked sets.

Inputs

setmark=<value>
The ID of the mark containing the sets. Valid values are 1 or 2.
targettype=<value>
The type of entity to be extracted from the set. Valid values are comps, nodes, assems, solversubmodels, sets, elems, box, segment, plane, ellipse, and nodens.
directflag=<value>
Flag to fetch only direct entities extracted out of set. Valid values are 1.

Examples

To extract box entities and node entities from all sets:
hm_createmark sets 1 all
hm_gettargetentitiesfromset 1 box

hm_createmark sets 1 all
hm_gettargetentitiesfromset 1 nodes

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

2025.1