poIQuerySetRule GetSelectionSetHandle

Gets the selection set handle.

Syntax

rule_handle GetSelectionSetHandle

Application

HyperView Tcl Query

Description

This command gets the selection set handle from the advanced query.

Example

To get the selection set handle from the advanced query:
hwi OpenStack
hwi GetActiveClientHandle client
clientGetModelHandle model_handle 1
set ruleID [client AddQueryRule selectionset]
client GetQueryRuleHandle rule_handle $ruleID
set setID [model_handle AddSelectionSet node]
model_handle GetSelectionSetHandle selectionSet_handle setID
selectionSet_handle Add "id 100-150"
rule_handle SetSelectionSet [selectionSet_handle GetID]
set advQueryID [client AddAdvancedQuery]
client GetAdvancedQueryHandle advancedQuery_handle $advQueryID
advancedQuery_handle AddSimulations "current" "current"
advancedQuery_handle SetQuery "entity.id entity.value"
advancedQuery_handle SetQueryLogic "[rule_handle GetID]" 
advancedQuery_handle GetValueList
hwi CloseStack

Errors

This command returns HW_InvalidHandle, if the core object associated with the advanced query rule handle does not exist anymore.