hm_markremove
Removes entities from the specified mark.
Syntax
hm_markremove entity_type mark_id list
Type
HyperMesh Tcl Query Command
Description
This command removes entities from the specified mark. Only entity IDs are allowed, and there are no advanced removal methods.
Inputs
- entity_type
- The type of entity mark to remove.
- mark_id
- The ID of the mark. Valid values are 1 and 2.
- list
- The entity IDs to remove. When specifying the list using a Tcl variable, the eval Tcl command must precede the hm_markremove command (see example below). This expands (substitutes) the Tcl list before executing the command.
Example
To remove the components with IDs 1 and 5 from mark 2:
hm_markremove comps 2 1 5
or, using a list:
set comps "1 5"
eval hm_markremove comps 2 $comps
Errors
Incorrect usage results in a Tcl error. To detect
errors, you can use the catch
command:
if { [ catch {command_name...} ] } {
# Handle error
}