*copytoclipboard

Copies entities to the HyperMesh clipboard.

Syntax

*copytoclipboard mark=<value> ?<option1>=<value1>? ?<option2>=<value2>? … ?<optionN>=<valueN>?

Type

HyperMesh Tcl Modify Command

Description

Copies entities to the HyperMesh clipboard.

Inputs

mark=<value>
The ID of the mark containing entities to be copied. Valid values are 1 and 2.
componentrule=<value>
The rule for components.
COMP_ONLY – Copy the component only.
FE – Copy the FE entities inside the component.
GEOM – Copy the geometry entities inside the component.
FE_AND_GEOM – Copy both the FE and geometry entities inside the component.
holderrule=<value>
The rule for entities that contain other entities.
ASSEMBLY – Also copy the assemblies and components that an assembly holds.
CONFIGURATION - Also copy the parts, partsets and configurations that a configuration holds.
PARTSET - Also copy the parts, partsets and partassemblies that a partset holds.
PARTASSEMBLY - Also copy the parts and partassemblies that a partassembly holds.
SUBSYSTEMCONFIGURATION - Also copy the subsystemconfigurations, subsystemsets and subsystems that a subsystemconfiguration holds.
SUBSYSTEMSET - Also copy the subsystemsets and subsystems that a subsystemset holds.
LOADCOL - Also copy the loads that a loadcolr holds.
SYSTEMCOL - Also copy the systems that a systemcol holds.
BEAMSECTCOL - Also copy the beamsects that a beamsectcol holds.
VECTORCOL - Also copy the vectors that a vectorcol holds.
LAMINATE - Also copy the plies that a laminate holds.
CONNECTORGROUP - Also copy the connectors that a connectorgroup holds.
ALL - Enforce all the above.
includefileids=<value>
The ID or the list of IDs of include files to be explicitly copied together with their related entities. If this argument is present, includefilerule is ignored.
includefilerule=<value>
The rule for include files.
IGNORE - Ignore include files and do not copy them.
COPY - Copy include files together with the hierarchy.
referencerule=<value>
The rule for references.
RESET - Reset all references.
COPY_UNDEFINED - Copy references as undefined.
COPY_UNRESOLVED - Copy references as unresolved.
COPY_BOTH - Copy references both as undefined and unresolved.

Example

To copy all entities in mark to clipboard with component option only FE, copy references, ignore include files and enforce all the holderrule options:

*copytoclipboard mark=1 componentrule=FE referencerule=COPY includefilerule=IGNORE holderrule=ALL

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