*copysegments

Copies segments from original set-segment to another set-segment.

Syntax

*copysegments set_ids=<value> elem_ids=<value> face_indices=<value> to_segment=<value>

Type

HyperMesh Tcl Modify Command

Description

Copies segments from one or many set-segments to another set-segment. A segment is defined using its corresponding set ID, element ID, and face index.

Inputs

set_ids=<value>
The ordered list of set IDs from which the segments need to be copied.
elem_ids=<value>
The ordered list of element IDs corresponding to the segments.
face_indices=<value>
The ordered list of face indices corresponding to the segments.
to_segment=<value>
The name of the destination set.

Examples

To copy segments with face indices 4 and 3 on element ID 78 from set ID 5 to set “set2”:
*copysegments "set_ids={5 5}" "elem_ids={78 78}" "face_indices={4 3}" to_segment="set2"

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

2022.1