*createmarkpanel
Provides a widget to add entities to a mark.
Syntax
*createmarkpanel entity_type mark_id message ?face_edge_mode? ?filter?
Type
HyperMesh Tcl Modify Command
Description
Provides a widget to interactively add entities to a mark.
Inputs
- entity_type
- The type of entities to add.
- mark_id
- The ID of the mark. Valid values are 1 and 2.
- message
- A string to show in the message bar when displaying the widget.
- ?face_edge_mode?
- The default face/edge selection mode to use when displaying the widget. 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 - Edges 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 create a mark of elements
interactively:
*createmarkpanel elems 1 "Please select the elements"
hm_getmark elems 1
To create a mark of elements interactively using 2D faces as the default selection
mode:
*createmarkpanel elems 1 "Please select the elements" 1
hm_getmark elems 1
To create a mark of elements interactively using 2D faces as the default selection mode,
only allowing 2D faces and 2D faces ext
modes:
*createmarkpanel elems 1 "Please select the elements" 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
2019 - Added new face_edge_mode values 6 and 7.