hm_markclear
Clear all entity IDs of the passed entity type from the specified mark.
Syntax
hm_markclear entity_type mark_id ?panel_sensitive?
Type
HyperMesh Tcl Query
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 (optional)
- 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 values are:
Example
To clear the components on mark 2 before creating a new mark:
hm_markclear comps 2
hm_createmark comps 2 "advanced" "all"
Errors
if { [ catch {command_name...} ] } {
# Handle error
}