poIResultCtrl UpdateResult
Updates a result definition based on newly loaded steps.
Syntax
poIResultCtrl_handle UpdateResult id context
Application
HyperView Tcl Modify
Description
This command, valid only in Upfront Data Loading Mode, forces an update to the specified result definition by loading the result data for any newly loaded steps. This can be used in a situation where you load the results for a subset of simulation steps and then proceed to load additional simulation steps afterwards. Calling this API will cause the results to be loaded for the newly loaded simulation steps. Returns Success (0) if updating was successful or Warning (2) if there was a problem during updating.
Inputs
- id
- The ID of the result definition to update.
- context
- A string indicating the context of the request. Valid values are: scalar, tensor, vector, and iso.
Example
To update a result definition with scalar ID 4:
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 UpdateResult 4 scalar
hwi CloseStack
Errors
Returns error code if there was an error in updating the result 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.