*midsurface_switch_sides_within_plate

Switches the side of the plate to which the input surfaces belong.

Syntax

*midsurface_switch_sides_within_plate mark_id reserved1 reserved2

Type

HyperMesh Tcl Modify Command

Description

Deletes the two components that contain copies of the model surfaces belonging to two sides of a given plate.

Switches the side number to which the surfaces on the input mark belong to the opposite side. If the selected surfaces happen to include surfaces from more than one plate, or surfaces that do not have plate information, the command will not do anything.

Inputs

mark_id
The ID of the mark containing the input surfaces. Valid values are 1 and 2.
reserved1
Reserved for future use. Must be set to 0.
reserved2
Reserved for future use. Must be set to 0.

Example

To set the surfaces with IDs 5-7 to belong to the opposite of their current side, assuming the input surfaces belong to the same plate:

*createmark surfaces 1 5 6 7
*midsurface_switch_sides_within_plate 1 0 0

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

13.0