All Frameworks Object Hierarchy This Framework Previous Next Indexes
SimulationInitState (Object)
IUnknown
|
+---IDispatch
|
+---CATBaseUnknown
|
+---CATBaseDispatch
|
+---AnyObject
|
+---SimulationInitState
Interface used to save/restore the simulation initial state.
Role: This interface is used to save/restore the initial state for
objects in the current document.
The following code snippet can be used to save the simulation initial state
for all the objects in the current document (all attributes). The
rootProduct can be any product from the current document.
Dim iMask
iMask = DNBAllInitStateAttr
Dim iSimInitState As SimulationInitState
Set iSimInitState = rootProduct.GetTechnologicalObject("SimulationInitState")
iSimInitState.SaveInitialState iMask
Method Index
-
RestoreInitialState
- Restores initial state attributes for all objects in the current document
that have a saved initial state.
-
RestoreInitialStateList
- Restores initial state attributes for the objects in the given list.
-
SaveInitialState
- Saves initial state attributes for all objects in the current document.
-
SaveInitialStateList
- Saves initial state attributes for the objects in the given list.
Methods
-
Restores initial state attributes for all objects in the current document
that have a saved initial state.
- Parameters:
-
- iAttrMask
- Indicates which initial state attributes will be restored
- Returns:
- An HRESULT.
Legal values:
- S_OK
- The restore operation succeeded
- E_FAIL
- The restore operation failed
-
Restores initial state attributes for the objects in the given list.
- Parameters:
-
- iProductLists
- Indicates which objects will be used for the restore initial state operation
- iAttrMask
- Indicates which initial state attributes will be restored
- Returns:
- An HRESULT.
Legal values:
- S_OK
- The restore operation succeeded
- E_FAIL
- The restore operation failed
-
Saves initial state attributes for all objects in the current document.
- Parameters:
-
- iAttrMask
- Indicates which initial state attributes will be saved
- Returns:
- An HRESULT.
Legal values:
- S_OK
- The save operation succeeded
- E_FAIL
- The save operation failed
-
Saves initial state attributes for the objects in the given list.
- Parameters:
-
- iProductLists
- Indicates which objects will be used for the save initial state operation
- iAttrMask
- Indicates which initial state attributes will be saved
- Returns:
- An HRESULT.
Legal values:
- S_OK
- The save operation succeeded
- E_FAIL
- The save operation failed