hwI3DViewCtrl Translate

Moves the position of the 3D plot within the window.

Syntax

hwI3DViewControl_handle Translate x y z

Application

HyperWorks Tcl Modify

Description

This command moves the position of the 3D plot within the window to a new position based on the x, y, and z input values.

Inputs

x
The input for the x variable is the distance left (negative values) or right (positive values) in the window that you want to move the 3D plot.
y
The input for the y variable is the distance down (negative values) or up (positive values) in the window that you want to move the 3D plot.
z
The input for the z variable is the distance forward or backward in the window that you want to move the 3D plot.

Example

hwi OpenStack;
hwi GetSessionHandle sess;
sess GetProjectHandle proj;
proj GetPageHandle p1 1;
p1 GetWindowHandle w1 1;
w1 GetClientHandle plot;
w1 GetViewControlHandle vc
vc Translate 2 5 0

Error

Returns success (0) or an error message.

Keywords

HyperWorks

3D plot

Tcl

Modify