*duplicatemark
Duplicates entities.
Syntax
*duplicatemark entity_type mark_id current_collector
Type
HyperMesh Tcl Modify Command
Description
Duplicates entities.
Inputs
- entity_type
- The entity type to duplicate.
- mark_id
- The mark ID containing the entities to duplicate. Valid values are 1 and 2.
- current_collector
- 0 - New entities should be placed in the collector(s) in which the source entities exist.
Example
To duplicate the elements 1-100 and place the new elements in the current
component:
*createmark elems 1 1-100
*duplicatemark elems 1 1
Errors
Incorrect usage results in a Tcl error. To detect
errors, you can use the catch
command:
if { [ catch {command_name...} ] } {
# Handle error
}