poISubcase GetDerivedSimulationResultID

Gets the result file ID corresponding to the simulation of a derived subcase.

Syntax

subcase_handle GetDerivedSimulationResultID

Application

HyperView Tcl Query

Description

This command returns the result file ID corresponding to a particular simulation of a derived subcase. Every result file loaded in HyperView has an associated result ID. If you have created a derived subcase and added simulations to this derived subcase from different result files, then this command allows you to get the result ID for a particular simulation index.

Example

To return a list of all of the table names:
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
set sid [result_handle AddSubcase]
result_handle GetSubcaseHandle sub_handle $sid
sub_handle AppendSimulation 1 0
sub_handle AppendSimulation 1 5
sub_handle AppendSimulation 1 10


set res_id [sub_handle GetDerivedSimulationResultID 2]
# The variable res_id will have a value of “1” because in this case, all the simulations are added using the result ID 1 (bumper/d3plot)

hwi CloseStack

Errord

None.