*copy_feature
Copies a selection of elements and pastes them onto the displayed shell elements at the target location.
Syntax
*copy_feature entity_type mark_id string_array number_of_strings
Type
HyperMesh Tcl Modify Command
Description
Copies a selection of elements and pastes them onto the displayed shell elements at the target location. The neighborhood of the pasted region will be remeshed.
Inputs
- entity_type
- The type of entity to copy. Valid values are components and elements. The selection may consist of shell or solid elements. Any 1D elements attached to shell elements are automatically included.
- mark_id
- The ID of the mark of entities. Valid values are 1 and 2.
- string_array
- The ID of the string array that contains the additional input parameters. The string array is created using the *createstringarray command. This should always be set to 1.
- number_of_strings
- Integer indicating the size (number of strings) in the string array created using *createstringarray.
Example
To copy elements 5100-5200 into 3 copies along the -y direction with a distance of 1, and remeshing 2 layers with the rebuild algorithm:
*createstringarray 5 "TransformByMatrix : 0 -1 0 0 1 0 0 0 0 0 1 0 0 0 0 1 " "MorphFeatureToBase : 1" "NumCopies : 3" "Rebuild : 1" "NumLayers : 2"
*createmark elements 1 5100-5200
*copy_feature elements 1 1 5
Errors
if { [ catch {command_name...} ] } {
# Handle error
}
Version History
2019.1