plt3DIChart GetDataSourceHandle
Gets a handle to a pltIVector interface for the specified curve.
Syntax
plt3DIChart_handle GetDataSourceHandle iVector which
Application
HyperWorks Tcl Query
Description
This method creates an interface and copies the pointer to the interface into this value. The caller is responsible for deleting it.
Inputs
- iVector
- A name for the handle.
- which
- A string indicating which vector to get. The options include x, y, z, u, v, or w. X, Y, and Z vectors of a 3D surface and 3D line plot may be functions of U and V and/or X, Y, and Z. The W vector defines the contour.
Example
hwi GetSessionHandle mySessionName
mySessionName GetProjectHandle myProjectName
myProjectName GetPageHandle myPageName [myProjectName GetActivePage]
myPageName GetWindowHandle myWindowName [myPageName GetActiveWindow]
myWindowName GetClientHandle myPlotName
myPlotName GetSurfaceHandle mySurfaceName [myPlotName AddSurface]
mySurfaceName GetDataSourceHandle myXName x
mySurfaceName GetDataSourceHandle myYName y
mySurfaceName GetDataSourceHandle myZName z
mySurfaceName GetDataSourceHandle myUName u
mySurfaceName GetDataSourceHandle myWName w
myXName SetType math
myYName SetType math
myZName SetType math
myUName SetType math
myWName SetType math
myXName SetExpression {-50:50:0.3}
myYName SetExpression {-50:50:0.3}
myUName SetExpression {(x^2 + y^2)^0.5}
myZName SetExpression {sin(u/2*(1 + 0.01 * x)) / (u/2)*50}
myWName SetExpression {z}
myPlotName Recalculate
myPlotName Autoscale
myPlotName SetContourEnabled true
myPlotName Draw
Errors
Success (0) or an error code.