hm_getmarkall

Returns a list of lists containing the populated entity type and entity IDs for the specified mark.

Syntax

hm_getmarkall mark_id ?model_name?

Type

HyperMesh Tcl Query Command

Description

Returns a list of lists containing the populated entity type and entity IDs for the specified mark. The first value in each returned list is the entity type, and the remaining values are the entity IDs of that type. For example, if mark 1 is populated with elements 1-5 and comps 101-105, the returned values would be:
{elems 1 2 3 4 5} {comps 101 102 103 104 105}

Inputs

mark_id
The ID of the mark to query. Valid values are 1 and 2.
model_name
The optional model to get all marks for. If not specified, the current model is used.

Example

To find all of the entities on mark 1:
hm_getmarkall 1
To find all of the entities on mark 1 for model model-2:
hm_getmarkall 1 model-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

11.0

2020 - Added new option model_name.