*pastefromclipboard

Paste entities from the HyperMesh clipboard.

Syntax

*pastefromclipboard ?<option1>=<value1>? ?<option2>=<value2>? … ?<optionN>=<valueN>?

Type

HyperMesh Tcl Modify Command

Description

Paste entities from the HyperMesh clipboard to a target or current model.

Inputs

connectors.checkattribute=<value>
Determines if connector attributes are compared when deciding if they are the same. Possible values are true and false. This is optional and false is the default.
connectors.layercheck=<value>
Determines if connector layers are compared when deciding if they are the same. Possible values are true and false. This is optional and false is the default.
connectors.thicknesscheck=<value>
Determines if connector thicknesses are compared when deciding if they are the same. Possible values are true and false. This is optional and false is the default.
connectors.tolerance=<value>
Specifies the tolerance to use when deciding if connectors are the same.
dropincomingmodulehierarchy=<value>
This is for special cases that need to drop any incoming module hierarchy, but keep the contents. Possible values are yes and no. This is optional and no is the default.
mergemode.comps=<value>
Specifies how to merge the attributes of components identified as the same. Possible values are keepexisting, keepincoming and keepboth. This is optional and keepboth is the default.
mergemode.connectors=<value>
Specifies how to merge the attributes of connectors identified as the same. Possible values are keepexisting, keepincoming and keepboth. This is optional and keepboth is the default.
mergemode.geometryandmesh=<value>
Specifies how to merge the contents of components identified as the same. Possible values are keepexisting, keepincoming and keepboth. This option is valid only in case that mergemode.comps is either keepexisting or keepincoming. When mergemode.comps is keepboth, there will be separate components anyway. This is optional and keepboth is the default when valid.
mergemode.mats=<value>
Specifies how to merge the attributes of materials identified as the same. Possible values are keepexisting, keepincoming and keepboth. This is optional and keepboth is the default.
mergemode.modules=<value>
Specifies how to merge the attributes of parts identified as the same. Possible values are keepexisting and keepboth. This is optional and keepboth is the default.
mergemode.props=<value>
Specifies how to merge the attributes of properties identified as the same. Possible values are keepexisting, keepincoming and keepboth. This is optional and keepboth is the default.
respectincomingparentmodule=<value>
This is used to guide component conflict resolution. This is necessary when an incoming component belongs to a different part, in comparison with the same component in the session. In this case the conflict is resolved either by respecting the incoming parent part or the in-session one. Possible values are yes and no. This is optional and no is the default.
targetmodel=<value>
The name of the target model. If not specified, the entities are pasted in the current model.

Example

To paste entities from the clipboard to model “newmodel” and keep the attributes of the incoming components:

*pastefromclipboard targetmodel=newmodel mergemode.comps=keepincoming

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