*createlist

Creates an ordered list of entities for use in a subsequent command.

Syntax

*createlist entity_type list_id ?"by model" <model_name>? entities

Type

HyperMesh Tcl Modify Command

Description

Creates an ordered list of entities for use in a subsequent command.

Inputs

entity_type
Entity type to put on the list. Valid values are elems, laminates, lines, nodes, plies and surfs.
list_id
The ID of the list to populate. Valid values are 1 and 2.
"by model" <model_name>
The optional model to create the list from. If not specified, the current model is used.
entities
The ID of the entities, in the appropriate order.

Examples

To create a line from nodes 2, 10, and 3:
*createlist nodes 1 2 10 3
*linecreatefromnodes 1 0 150 5 179
To create, query, and clear a list from nodes 2, 10, and 3 for model model-2:
*createlist nodes 1 "by model" model-2 2 10 3
set my_list [hm_getlist nodes 1 0 model-2]
*clearlist nodes 1 "by model" model-2

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

2020 - Added new option "by model".