poISelectionSet GetSelectModeList

Retrieves a list of possible values for the selection mode.

Syntax

selectionSet_handle GetSelectModeList

Application

HyperView Tcl Query

Description

This command returns the possible values for the selection mode. The selection mode is used to create selection sets either from the whole model (select mode “all”) or only the currently displayed part of it (select mode “displayed”).

Example

To create a selection set containing all nodes, make it visible in the graphic area, and use GetSelectModeList and SetSelectMode to add entities to the current set:
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]
set selection_set_id [model_handle AddSelectionSet node]

model_handle GetSelectionSetHandle selection_set_handle $selection_set_id
selection_set_handle SetLabel "OurNodeSelectionSet"
selection_set_handle SetVisibility true

puts "SelectModeList: [selection_set_handle GetSelectModeList]"
selection_set_handle SetSelectMode all
puts "Size using SelectMode all:  [selection_set_handle GetSize] [selection_set_handle GetType]s"
selection_set_handle Clear

#hide part of the model using the model browser now
selection_set_handle SetSelectMode displayed
puts "Size using SelectMode displayed:  [selection_set_handle GetSize] [selection_set_handle GetType]s"

hwi CloseStack

Errors

This command should not return any errors.