poIResultMathCtrl GetNumResultMathResources
Gets the number of additional result files that were loaded while using the Result Module to load models into HyperView.
Syntax
rmath_handle GetNumResultMathResources
Application
HyperView Tcl Query
Description
This command returns the number of additional result files that were loaded while using the
Result Module to load models into HyperView. This will be equal
to the number of files that were specified for the last argument for the
“AddResultMathAnalysis” command that is available in the client
handle.
Note: The return value of this command does not include the base result file that
is loaded along with the model file, it only returns the number of additional result
files.
Example
To get the number of result math resources used while loading a
model:
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
# Add 3 Result files (bumper, bumper foam, airbag)
set mid [client_handle AddResultMathAnalysis "Standard", "c:/samples/bumper/d3plot", "c:/samples/bumper/d3plot", 0, 0, "c:/samples/bumper_foam/d3plot;c:/samples/airbag/d3plot"]
client_handle GetModelHandle model_handle $mid
# Get the resource label/filename corresponding to the 3 subcases
set nres [model_handle GetNumResultMathResources]
hwi CloseStack
Errors
None.