poIResultMathCtrl GetResourceList
Gets a list of result math resources.
Syntax
rmath_handle GetResourceList type
Application
HyperView Tcl Query
Description
This command retrieves a list of result module resources. The argument “type” is optional. If the argument has a value of “external”, only the external resources (added by the command AddResource) will be listed. If the argument is omitted, all of the resources will be listed. When a model/result file is loaded into HyperView, there may one or two resources depending on whether the model and result files are the same. For example, if the same d3plot is used for model and result, there will be only one resource.
Inputs
- type
- Valid options are: "external" or "all".
Example
To get a list of result math
resources:
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 res_list [rmath_handle GetResourceList external]
set res_list [rmath_handle GetResourceList all]
hwi CloseStack
Errors
Returns an empty list if an error occurs.