poIPost AddResultMathAnalysis

Adds a model and result pair to HyperView and enables result math.

Syntax

poIPost_handle AddResultMathAnalysis tmpl mfile rfile mreader rreader add_resfiles

Application

HyperView Tcl Modify

Description

This command adds a model and result pair to HyperView and enables result math. The result math operations which are available will depend on the template name specified. The Model reader name and Result reader name arguments are optional.
Note: If the AddModel and SetResult commands are used, result math will not be enabled.

Inputs

tmpl
The result module template name (for example, Standard, Advanced, NVH).
mfile
The path of the model file.
rfile
The path of the result file.
mreader (Optional)
Specifies the reader name which will be used to read the model file.
rreader (Optional)
Specifies the reader name which will be used to read the result file.
add_resfiles (Optional)
Specifies the path of additional result files to be loaded along with the model file and result file. The additional result files are separated by a semicolon (;).

Example

To add a new model and result file with result math enabled:
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
client_handle AddResultMathAnalysis Standard c:/model.dat c:/result.op2 0 0 “c:/result2.op2;c:/result3.op2;c:/result3.op2”
hwi CloseStack

Errors

Returns the ID of the model added, or an error code (0) if a model/result pair could not be added.