poIResultMathCtrl SetEquation
Sets the result math equation string.
Syntax
rmathexp_handle SetEquation eqn mode
Application
HyperView Tcl Modify
Description
This command sets the math equation.
Inputs
- eqn
- A valid equation string.
- mode (Optional)
- The mode can have a value of "alias" or "original".
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 eid [rmath_handle AddExpression]
rmath_handle GetExpressionHandle exp_handle $eid
exp_handle SetEquation {Stress+2} original # original form
exp_handle SetEquation {T1+2} alias # alias form
exp_handle SetEquation {sqrt(Stress+2)} original
exp_handle SetEquation {sqrt(T1+2)} alias
exp_handle SetEquation {LC1F1.Stress.xx.Lower – LC1F3.Stress.yy.Upper} original
exp_handle SetEquation {Stress.xx + Stress.yy} original
hwi CloseStack
Errors
Returns a non-zero value if there is an error.