*rotatemark
Rotates a selection of entities about a plane normal.
Syntax
*rotatemark entity_type mark_id plane_id angle
Type
HyperMesh Tcl Modify
Description
This command rotates a selection of entities about a plane.
Inputs
- entity_type
- The type of entity to rotate.
- mark_id
- The ID of the mark containing the entities. Valid values are 1 and 2.
- plane_id
- The ID of the plane to use for the rotation. The normal of this plane will be used as the axis of rotation. This is defined using the *createplane command.
- angle
- The angle to rotate in degrees.
Example
To rotate element 56 and 57 about the z axis (30 degrees) with an origin of (3.0,4.0,0.0):
*createplane 1 0.0 0.0 1.0 3.0 4.0 0.0
*createmark elems 1 56 57
*rotatemark elems 1 1 30.0
Errors
if { [ catch {command_name...} ] } {
# Handle error
}