poISubcase GetCurrentSimulation
Gets the current simulation index of the subcase.
Syntax
subcase_handle GetCurrentSimulation
Application
HyperView Tcl Query
Description
This command returns the current simulation index of the subcase. The index starts with 0.
Example
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 GetModelHandle model_handle [client_handle GetActiveModel]
model_handle GetResultCtrlHandle result_handle
result_handle GetSubcaseHandle subcase_handle 2
# Get the current simulation for subcase id 2
set func_type [subcase_handle GetCurrentSimulation]
hwi CloseStack
Errors
None.