hwI3DViewCtrl SetRotationAngle

Sets the rotation angle.

Syntax

hwI3DViewControl_handle SetRotationAngle angle

Application

HyperWorks Tcl Modify

Description

This command sets the angle of rotation (the numeric value) of how much the plot is rotated by, used by the following functions: RotateClockwise, RotateCounterClockwise, RotateUp, RotateDown, RotateLeft and RotateRight. The angle of rotation is preset at 1 degree. However, SetRotationAngle changes the angle to the value that you want to use.

Inputs

angle
A user-selected number that represents the angle that you want to rotate by. A negative number does not make a difference to the rotation, for the functions that use this angle only rotate in one direction. Therefore, the functions use the absolute value of the negative angle value.

Example

hwi OpenStack;
hwi GetSessionHandle sess;
sess GetProjectHandle proj;
proj GetPageHandle p1 1;
p1 GetWindowHandle w1 1;
w1 GetClientHandle plot;
w1 GetViewControlHandle vc
vc SetRotationAngle 45

Error

Returns success (0) or an error code.

Keywords

HyperWorks

3D plot

Tcl

Modify