*createlistpanel

Provides a panel to create an ordered list of entities for use in a subsequent command.

Syntax

*createlistpanel entity_type list_id message

Type

HyperMesh Tcl Modify Command

Description

Provides a panel to create an ordered list of entities for use in a subsequent command.

Inputs

entity_type
The type of entities to put on the list. Valid values are:
  • elems
  • laminates
  • lines
  • nodes
  • plies
  • surfs
list_id
The ID of the list to populate. Valid values are 1 and 2.
message
A string indicating a message to display in the message bar.

Examples

To create a line from a user specified list of nodes:
*createlistpanel nodes 1 "Select nodes for the line:"
set node_list [ hm_getlist nodes 1 ];
if { ! [ Null node_list ] } {
    *linecreatefromnodes 1 0 150 5 179
}

Errors

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