*duplicateentities

Duplicates elems, nodes and comps along with any attached loads.

Syntax

*duplicateentities entity_type input_mark_id output_mark_id ?option1=<value1>? ?option2=<value2>? ... ?optionN=<valueN>?

Type

HyperMesh Tcl Modify

Description

Duplicates elems, nodes and comps along with any attached loads.

Inputs

entity_type
The entity type to duplicate. Valid values are elements, components and nodes.
input_mark_id
The mark ID containing the entities to duplicate. Valid values are 1 and 2.
output_mark_id
The mark ID containing the new entities. Valid values are 1 and 2.
option=<value>
The following options are available:
destcomponent=<value>
Required option.
  • 1 - New component.
  • 2 - Current component.
transformloads=<value>
0 - Do not transform loads (default).
1 - Transform loads.
destloadcol=<value>
Valid only if transformloads is 1. Required option.
  • 1 - New load collector.
  • 2 - Current load collector.
reverseloads=<value>
Valid only if transformloads is 1.
  • 0 - Do not reverse loads (default).
  • 1 - Reverse loads.

Examples

To duplicate the element with ID 1 and place the new element in the current component:
*createmark elems 1 1
*duplicateentities elems 1 2 destcomponent=2
To duplicate all elements, place the elements in a new component, and transform the loads and place them in a new load collector:
*createmark elems 1 all
*duplicateentities elems 1 2 transformloads=1 destcomponent=1 destloadcol=

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

14.0