*swapcontactmasterslave

Swaps the master and slave entities of groups.

Syntax

*swapcontactmasterslave mark_id

Type

HyperMesh Tcl Modify Command

Description

Swaps the master and slave entities of groups.
Note:
  • In OptiStruct, if slave is a set of nodes, on swapping it is converted to set of elements.
  • In Samcef, it is used to swap master-slave entities of groups MCT and STI. New master and slave entities are created on swapping based on the entity types supported specific to element type and contact type.

Inputs

mark_id
The ID of the mark containing the groups to update. Valid values are 1 and 2.

Example

Swap master and slave entities of groups with IDs 1 and 2:

*createmark groups 1 1 2
*swapcontactmasterslave 1

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.130