poIResultMathCtrl GetOperatorArgumentCount

Gets the number of arguments for a particular result math operator.

Syntax

rmath_handle GetOperatorArgumentCount lib oper

Application

HyperView Tcl Query

Description

This command retrieves the number of input arguments needed for a result math operator. A result math operator is a part of a result math library. For operators in a plugin library, the number of arguments is always one.

Inputs

lib
The name of the result math library.
oper
The name of the result math operator.

Example

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

set mid [client_handle AddResultMathAnalysis “c:/samples/bumper/d3plot” “c:/samples/bumper/d3plot”]

client_handle GetModelHandle model_handle $mid
model_handle GetResultCtrlHandle result_handle
result_handle GetResultMathCtrlHandle rmath_handle

set argcount [rmath_handle GetOperatorArgumentCount math +]
set argcount [rmath_handle GetOperatorArgumentCount math sqrt]
set argcount [rmath_handle GetOperatorArgumentCount model area]


hwi CloseStack

Errors

Returns -1 if there is an error.