poISubcase UnloadSimulation

Unloads the simulation corresponding to the index.

Syntax

subcase_handle UnloadSimulationindex

Application

HyperView Tcl Modify

Description

This command frees the memory associated with the given simulation index. An index of -1 unloads all the steps except the current one (the current simulation cannot be unloaded).

Inputs

index
The simulation index.

Example

To unload a simulation step:
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 1

# Unload simulation index 2
subcase_handle UnloadSimulation 2
hwi CloseStack

Errors

Returns a non-zero value if the index value is not appropriate.