*editmarkpanel
Provides a panel to add or remove entities to a mark.
Syntax
*editmarkpanel entity_type mark_id message ?face_edge_mode? ?filter?
Type
HyperMesh Tcl Modify
Description
Provides a panel to add or remove entities to a mark.
Inputs
- entity_type
- The type of entities to add or remove.
- mark_id
- The ID of the mark. Valid values are 1 and 2.
- message
- A string to show in the message bar when entering the panel.
- ?face_edge_mode?
- The default face/edge selection mode to use when entering the panel. This is valid
only for nodes and elements. An invalid value defaults to 0, or is ignored for
non-supported entity types.
- 0 – Standard entity selection
- 1 – 2D faces (elems) or faces (nodes)
- 2 – 2D faces ext (elems and nodes)
- 3 – Free edges (nodes only)
- 4 – Edges (nodes only)
- 5 – Loops (nodes only)
- 6 – Free edges ext (nodes only)
- 7 – Edge ext (nodes only)
- ?filter?
- Defines which selection modes should be allowed. Bit values are used and the value is calculated as (Bit0 + 2*Bit1 + 4*Bit2 + 8*Bit3 + 16*Bit4 + 32*Bit5 + 64*Bit6 + 128*Bit7).
Examples
To prepopulate mark 1 with elements and then edit the mark in a
panel:
*createmark elems 1 1-100
*editmarkpanel elems 1 "Please edit the mark"
hm_getmark elems 1
To prepopulate mark 1 with elements and then edit the mark in a panel using 2D faces as the
default selection
mode:
*createmark elems 1 1-100
*editmarkpanel elems 1 "Please edit the mark" 1
hm_getmark elems 1
To prepopulate mark 1 with elements and then edit the mark in a panel using 2D faces as the
default selection mode, only allowing 2D faces and 2D faces ext
modes:
*createmark elems 1 1-100
*editmarkpanel elems 1 "Please edit the mark" 1 6
hm_getmark elems 1
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
10.0