*clearmark

Clear all entity IDs of the passed entity type from the specified mark.

Syntax

*clearmark entity_type mark_id ?"by model" <model_name>?

Type

HyperMesh Tcl Modify Command

Description

This command clears all entity IDs of the passed entity type from the specified mark.

Inputs

entity_type
The type of entity mark to clear.
mark_id
The mark ID. Valid values are 1 and 2.
"by model" <model_name>
The optional model to clear the mark from. If not specified, the current model is used.

Examples

To clear the components on mark 2 before creating a new mark:
*clearmark comps 2
*createmark comps 2 all
To clear the components on mark 2 for model model-2 before creating a new mark:
*clearmark comps 2 "by model" model-2
*createmark comps 2 "by model" model-2 all

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 "by model".