hwILayer SetVisibility
Sets the visibility of a layer.
Syntax
hwILayer_handle SetVisibilitynew_state
Application
HyperWorks Tcl Modify
Description
When a layer is shown or hidden, all objects associated with that layer will also be shown or hidden. Currently, only curves, notes, and datum lines from the HyperGraph application are associated with layers.
Inputs
- new_state
-
- "True"
- Shows the layer.
- "False"
- Hides the layer.
Example
hwi GetSessionHandle mySession
mySession GetProjectHandle myProject
set layerID [myProject AddLayer]
myProject GetLayerHandle myLayer $layerID
myLayer SetVisibility false
Errors
Success (0) or an error code.
- 3 = HW_InvalidHandle
- The handle used to invoke the method is no longer valid.