poISelectionSet Subtract
Subtracts entities from the selection set.
Syntax
selectionSet_handle Subtractselection
Application
HyperView Tcl Query
Description
This command removes entities specified by the argument selection from the current selection set (for example, Subtract “id 1-10”).
Inputs
- selection
- To see a detailed list of possible selections, please see Add and its detailed example.
Example
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 GetSelectionSetHandle selection_set_handle [model_handle AddSelectionSet node]
selection_set_handle SetLabel "OurNodeSelectionSet"
puts "Possible list selections: [selection_set_handle GetSelectByList]"
selection_set_handle Add all
puts "Add all : [selection_set_handle GetSize] [selection_set_handle GetType]s"
#subtract nodes in the ID range of 1 to 100
selection_set_handle Subtract "id 1-100"
puts "Subtract id 1-100 : [selection_set_handle GetSize] [selection_set_handle GetType]s"
hwi CloseStack
Error
This command should not return any errors. If the argument is invalid, nothing will be subtracted from the selection set.