poIResultCtrl LoadSimulation

Loads position data (animation) for the given subcase and frame (index).

Syntax

poIResultCtrl_handle LoadSimulation subcase_id index

Application

HyperView Tcl Modify

Description

This command, valid only in Upfront Data Loading Mode, loads position data (animation) for the given subcase and frame (index).

Inputs

subcase_id
The ID of the subcase or 0 for all subcases.
index
The frame number (0 based) or -1 for all frames.

Errors

None.

Example

To load the simulation step with index 4 from subcase ID 1:

hwi OpenStack
hwi GetSessionHandle sess
sess GetProjectHandle proj
proj GetPageHandle page [proj GetActivePage]
page GetWindowHandle win [page GetActiveWindow]
win GetClientHandle client
client GetModelHandle model [client GetActiveModel]
model GetResultCtrlHandle rc
rc LoadSimulation 1 4
hwi CloseStack

Errors

Returns error code if there was an error in loading and sets error condition on the session handle. See session_handle GetError.

Related Topics

See the Upfront Data Loader APIs topic for additional information regarding the various Tcl/Tk commands that have been added for this workflow.