poISelectionSet SetIDVisibility

Sets the visibility status for entity IDs of the current selection set.

Syntax

selectionSet_handle SetIDVisibility visibility_state

Application

HyperView Tcl Modify

Description

This command sets the visibility of IDs for all entities included in the current selection set. This setting determines whether the IDs should be shown or not shown when graphics are updated. If the visibility state is true, the IDs for all entities are displayed. If the visibility state is false, the IDs are not displayed.
Note: SetIDVisibility works only if SetVisibility was set to true before.

Inputs

visibility_state
Set to true to display the IDs, otherwise set to false.

Example

To create a selection set containing all nodes, make it visible, and display the entity IDs:
hwi OpenStack
hwi GetSessionHandle session_handle
session_handle GetProjectHandle project_handle
project_handle GetPageHandle page_handle [project_handle GetActivePage]
page_handle GetWindowHandle window_handle [page_handle GetActiveWindow]
window_handle GetClientHandle client_handle
client_handle GetModelHandle model_handle [client_handle GetActiveModel]
model_handle AddSelectionSet node
puts "Current selection sets: [model_handle GetSelectionSetList]\n"

model_handle GetSelectionSetHandle selection_set_handle 1
selection_set_handle SetLabel "OurNodeSelectionSet"
selection_set_handle Add all

puts "Current selection set ID: [selection_set_handle GetID]"
puts "   Label: [selection_set_handle GetLabel]"
puts "   Size:  [selection_set_handle GetSize] [selection_set_handle GetType]s"
puts "   Default color:         [selection_set_handle GetColor]"
puts "   Default visibility:    [selection_set_handle GetVisibility]"
puts "   Default ID visibility: [selection_set_handle GetIDVisibility]"
puts "----------------------"

selection_set_handle SetVisibility true
selection_set_handle SetIDVisibility true
puts "   Current ID visibility: [selection_set_handle GetIDVisibility]"
hwi CloseStack

Errors

This command should not return any errors. If a wrong argument is passed in, the visibility state will be set to false.