plt3DIPlot SetAspectRatio
Sets the relative lengths of Y and Z axes with respect to X.
Syntax
plt3DIPlot_handle SetAspectRatioy_factor z_factor
Application
HyperWorks Tcl Query
Description
The aspect ratios of the axes can be set explicitly. The X axis is assumed always to have a length of one, with Y and Z axes having individual values associated with them to define the ratios. Once set, the ratios can be frozen by calling SetAspectRatioLocked. If not locked, the ratios may be changed by manipulations of the GUI.
Inputs
- y_factor
- Ratio of Y to X length.
- z_factor
- Ratio of Z to X length.
Example
hwi GetSessionHandle mySessionName
mySessionName GetProjectHandle myProjectName
myProjectName GetPageHandle myPageName 1
myPageName GetWindowHandle myWinName 1
myWinName GetClientHandle myClientName
myClientName GetSurfaceHandle mySurfaceName
myClientName SetAspectRatio 2 3
myClientName Draw
Errors
Success (0) or an error code.