*swapcontactmasterslave

Swaps the main and secondary entities of groups.

Syntax

*swapcontactmasterslave mark_id

Type

HyperMesh Tcl Modify Command

Description

Swaps the main and secondary entities of groups.
Note:
  • In OptiStruct, if secondary is a set of nodes, on swapping it is converted to set of elements.
  • In Samcef, it is used to swap main-secondary entities of groups MCT and STI. New main and secondary 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 main and secondary 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