poIQueryIgnoreElemTypeRule SetNumberAdjacent
Sets the number of adjacent elements to ignore.
Syntax
rule_handle SetNumberAdjacent value
Application
HyperView Tcl Modify
Description
This command is used to set the number of adjacent elements to ignore from the advanced query.
Inputs
- value
 - Accepts an integer value.
 
Example
To set the number of adjacent elements to ignore from the advanced
        query:
    hwi OpenStack
hwi GetActiveClientHandle client
set ruleID [client AddQueryRule ignoreelemtype]
client GetQueryRuleHandle rule_handle $ruleID
rule_handle SetElementTypeList "rigidlink Quad4"
rule_handle SetNumberAdjacent 1
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 the value passed is less than 0.