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