hm_markclear
Clear all entity IDs of the passed entity type from the specified mark.
Syntax
hm_markclear entity_type mark_id ?panel_sensitive? ?model_name?
Type
HyperMesh Tcl Query 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 ID of the mark. Valid values are 1 and 2.
- panel_sensitive
- Deprecated. Always set to 0.
- model_name
- The optional model to clear the mark from. If not specified, the current model is used.
Example
To clear the components on mark 2 before creating a new
mark:
hm_markclear comps 2
hm_createmark comps 2 "advanced" "all"
To clear the components on mark 2 before creating a new mark for model
model-2:
hm_markclear comps 2 0 model-2
hm_createmark comps 2 "by model" model-2 "advanced" "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 model_name.
2023 - Deprecated argument panel_sensitive.