poISelectionSet GetRangeList

Retrieves the list of pool name and ID ranges.

Syntax

selectionSet_handle GetRangeList pool_name

Application

HyperView Tcl Query

Description

This command returns a list of pool name and ID ranges of either all entities or entities matching the optional pool_name argument.

Inputs

pool_name (Optional)
If set, the command returns a range list of entities matching the specific pool name. If not set, it returns a range list of all entities.

Example

To create a selection set containing all elements, make it visible in the graphic area, and use GetPoolList and GetRangeList to retrieve a list of pool name and ID ranges:
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 element
puts "Current selection sets: [model_handle GetSelectionSetList]\n"

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

puts "Range list for all entities: "
selection_set_handle GetRangeList

puts "Range list for the first available pool name:"
set poolOne [lindex [selection_set_handle GetPoolList] 0]
selection_set_handle GetRangeList $poolOne

hwi CloseStack

Errors

This command should not return any errors. If an invalid pool name is passed in, the command returns a range list for all entities.