*createentitypanel
Allows you to interactively select a single entity
Syntax
*createentitypanel entity_type message
Type
HyperMesh Tcl Modify
Description
This command provides you with a panel and a standard entity collector that is used to select a single entity. The entity selected is then retrieved using the command hm_info lastselectedentity entity_type.
If multiple entity selection is required, use *createmarkpanel.
Inputs
- entity_type
- The type of entity to select.
- message
- The message to display to the user in the message bar.
Examples
*createentitypanel systs "Select system"
if {[hm_info lastselectedentity systs] == 0} {
hm_errormessage "No system selected"
}
Errors
if { [ catch {command_name...} ] } {
# Handle error
}