poIQueryDistanceRule SetDistance

Sets the distance value to the advanced query.

Syntax

rule_handle SetDistance distance

Application

HyperView Tcl Modify

Description

This command is used to set the distance value to the advanced query.

Inputs

distance
The distance value must be a float type.

Example

To set the distance value to the advanced query:
hwi OpenStack
hwi GetActiveClientHandle client
set ruleID [client AddQueryRule mindist]
client GetQueryRuleHandle rule_handle $ruleID
rule_handle SetDistance "300"
set advQueryID [client AddAdvancedQuery]
client GetAdvancedQueryHandle advancedQuery_handle $advQueryID
advancedQuery_handle AddSimulations “current” “current”
advancedQuery_handle SetQueryRule "[rule_handle GetID]" 
advancedQuery_handle SetQuery “entity.id entity.value”
advancedQuery_handle GetValueList
hwi CloseStack

Errors

This command returns HW_Error, if a value is passed that is less than or equal to 0 to the distance.