*createnewsetandsubobject

Creates a new set of type subobject with specified data.

Syntax

*createnewsetandsubobject ?name=<value>? entitytype=<value> ?element_type=<value>? ?config=<value>? ?entity_ids=<value>?

Type

HyperMesh Tcl Modify Command

Description

Creates a new set of type subobject with specified data.

Inputs

name=<value>
The name of the set.
entitytype=<value>
The type of entity set subobject. Valid values are comps, nodes, assems, solversubmodels, sets, elems, box, segment, plane, ellipse, and nodens.
element_type=<value>
Type of element to be declared when entitytype is elements.
config=<value>
The subobject config corresponding to the entitytype.
entity_ids=<value>
The list of entity IDs to be assigned to the subobject.

Examples

To create a set with all the nodes:
*createmark nodes 1 all
set nodelist [hm_getmark nodes 1]
*createnewsetandsubobject name=set1 entitytype=nodes entity_ids=$nodelist

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

2025.1