*createlistbypathpanel

Provides a panel to create an ordered list of entities for use in a subsequent command, with the collector set to "by path".

Syntax

*createlistbypathpanel entity_type list_id message

Type

HyperMesh Tcl Modify

Description

Provides a panel to create an ordered list of entities for use in a subsequent command, with the collector set to "by path".

Inputs

entity_type
Entity type 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 status bar.

Examples

To create a line from a user specified list of nodes:
*createlistbypathpanel 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
}

Version History

11.0.130