hm_getmark

Returns the entity IDs of the passed entity type on the specified mark.

Syntax

hm_getmark entity_type mark_id ?panel_sensitive? ?model_name?

Type

HyperMesh Tcl Query Command

Description

Returns the entity IDs of the passed entity type on the specified mark.

Inputs

entity_type
The type of entity to query.
mark_id
The ID of the mark containing the entities. Valid values are 1 and 2.
panel_sensitive
Can be used when multiple panel levels have been pushed, either using the shortcut function keys, or the hm_pushpanel command. This option determines whether to use the current panel or the previous panel for the operation. This option is relevant only when the mark has been created from a panel entity selector under the above conditions. Valid options are:
0 - Use the previous panel (default).
1 - Use the current panel.
model_name
The optional model to get the mark for. If not specified, the current model is used.

Examples

To return the components on mark 1:
hm_getmark comps 1
To return the components on mark 1 for model model-2:
hm_getmark comps 1 0 model-2
A mark of loads is created in the Delete panel. The Mask panel has been pushed using the command "hm_pushpanel mask". A mark of loads is created in the Mask panel. To get the list of loads on mark 1 created from the Mask panel:
hm_getmark loads 1 1
To get the list of loads on mark 1 created from the Delete panel:
hm_getmark loads 1 0

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

2020 - Added new option model_name.