poIQueryCtrl SetQuery

Sets the query string.

Syntax

poIQueryControl_handle SetQueryquery

Application

HyperView Tcl Modify

Description

This command sets the query string.
Note: Query is a string containing a space (" ") or comma (",") separated list of datasource fields in the form "datasource.field" (example: "node.id node.coords contour.value").

Inputs

query
The query string to be set.
Query Type Query Options
Node Based node.id

node.pool

node.rsys

node.asys

node.coords

component.id

component.pool

component.name

component.color

misc.load

misc.sim

misc.model

Element Based element.id

element.pool

element.config

element.connectivity

element.normal

element.centroid

component.id

component.pool

component.name

component.color

misc.load

misc.sim

misc.model

Part Based component.id

component.pool

component.name

component.color

misc.load

misc.sim

misc.model

System Based system.id

system.pool

system.type

system.origin

system.x-axis

system.y-axis

system.z-axis

Result Based contour.value

result.complex_value_M/P

result.complex_value_R/I

result.value

Example

To set the query string for elements:
hwi GetSessionHandle mySessionName
mySessionName GetProjectHandle myProjectName
set pageIndex [myProjectName GetActivePage]
myProjectName GetPageHandle myPageName $pageIndex
set windowIndex [myPageName GetActiveWindow] 
myPageName GetWindowHandle myWindowName $windowIndex
myWindowName GetClientHandle myPostName
set modelIndex [myPostName GetActiveModel]
myPostName GetModelHandle myModelName $modelIndex
myModelName GetQueryCtrlHandle myQueryName
myQueryName SetQuery "node.id result.value"

Error

Returns 0 if successful, or an error code (HW_InvalidHandle) if the handle used to invoke the method is no longer valid.