poISelectionSet Reverse
Reverses the selection of entities on the selection set.
Syntax
selectionSet_handle Reverse
Application
HyperView Tcl Modify
Description
This command reverses the contents of the current selection set. It affects only entities of the same type.
Example
To create a selection set containing all nodes, make it visible in the graphic area, and
use Reverse to change the number of entities to
none:
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
selection_set_handle SetVisibility true
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 "----------------------"
selection_set_handle Reverse
puts " Size after using Reverse: [selection_set_handle GetSize] [selection_set_handle GetType]s"
puts "----------------------"
hwi CloseStack
Errors
This command should not return any errors.