poIResultMathCtrl GetResourceLabel

Gets the resource file name corresponding to a particular subcase ID.

Syntax

rmath_handle GetResourceLabelsub_id

Application

HyperView Tcl Query

Description

This command returns the file name corresponding to the subcase ID. This command is commonly used when multiple result files are loaded using a result math template.

Inputs

sub_id
The subcase ID.

Example

To get the label of a simulation:
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
model_handle GetResultCtrlHandle result_handle
result_handle GetResultMathCtrlHandle rmath_handle

# Get the resource label/filename corresponding to the 3 subcases
set res_lab1 [rmath_handle GetResourceLabel 1]
set res_lab2 [rmath_handle GetResourceLabel 2]
set res_lab3 [rmath_handle GetResourceLabel 3]


hwi CloseStack

Errors

None.