*markdifference
Determines the difference between two marks and stores the results in the first mark.
Syntax
*markdifference entity_typeA mark_idA entity_typeB mark_idB
Type
HyperMesh Tcl Modify
Description
This command determines the difference between the entity IDs that exist on mark_idA on those on mark_idB. The results are then placed on mark_idA.
Both entity_typeA and entity_typeB must be the same.
Example
To delete the difference between the elements on marks 1 and 2:
*createmark elems 1 1 2 3 4
*createmark elems 2 4 5 6 7
*markdifference elems 1 elems 2
*deletemark elems 1
This will delete elements 1, 2, and 3.
Errors
Incorrect usage results in a Tcl error. To
detect errors, you can use the catch
command:
if { [ catch {command_name...} ] } {
# Handle error
}