*createentitypanel

Allows you to interactively select a single entity

Syntax

*createentitypanel entity_type message

Type

HyperMesh Tcl Modify Command

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

To prompt you to select a single coordinate system:
*createentitypanel systs "Select system"
if {[hm_info lastselectedentity systs] == 0} {
   hm_errormessage "No system selected"
}

Errors

Incorrect usage results in a Tcl error. To detect errors, you can use the catch command:
if { [ catch {command_name...} ] } {
   # Handle error
}