plt3DISurface SetVisibility

Sets whether the surface is visible.

Syntax

plt3DISurface_handle SetVisibility enabled

Application

HyperWorks Tcl Modify

Description

Surfaces can be rendered invisible without destroying them. If the visibility flag is set to false, a surface will simply not be drawn (and won’t appear in the legend). However, the surface will still be displayed in the surface list and can be made visible again by changing the flag back to true.

Inputs

enabled
True
Highlighted
False
Not highlighted

Example

To turn off the visibility of an existing surface:
hwi GetSessionHandle mySessionName
mySessionName GetProjectHandle myProjectName
myProjectName GetPageHandle myPageName 1
myPageName GetWindowHandle myWinName 1
myWinName GetClientHandle myClientName
myClientName GetSurfaceHandle mySurfaceName
mySurfaceName SetVisibility true
myClientName Draw

Errors

None.