EditWithRollbackManager Class¶
-
class
NXOpen.Features.
EditWithRollbackManager
¶ Bases:
NXOpen.TaggedObject
Represents an object that stores transient data during Edit with Rollback of a feature.
A call to
NXOpen.Features.FeatureCollection.StartEditWithRollbackManager()
will roll the model to a suitable point before feature edit can begin.The feature edit is expected to happen after the call to
NXOpen.Features.FeatureCollection.StartEditWithRollbackManager()
The feature edit should be followed by a call to
NXOpen.Features.EditWithRollbackManager.UpdateFeature()
. A true needs to be passed intoNXOpen.Features.EditWithRollbackManager.UpdateFeature()
indicating that there was an error while editing the feature so all the transient data is cleaned up. A false needs to be passed intoNXOpen.Features.EditWithRollbackManager.UpdateFeature()
if there was no error while editing the feature.The call to method
NXOpen.Features.EditWithRollbackManager.UpdateFeature()
should be followed by a call toNXOpen.Features.EditWithRollbackManager.Stop()
. This method rolls forward the model to the original current feature after the feature is edited with rollback.Finally a call to
NXOpen.Features.EditWithRollbackManager.Destroy()
will destroy the transient object of classNXOpen.Features.EditWithRollbackManager
.Hence the sequence of calls -
An instance of this class can be created by a call to Features.FeatureCollection.StartEditWithRollbackManager
New in version NX11.0.0.
Methods¶
Method | Description |
---|---|
Destroy | Delete the Edit With Rollback Manager |
Stop | Rolls the model to the original current feature after the feature is edited with rollback |
UpdateFeature | Updates the feature after the feature is edited with rollback |
Method Detail¶
Destroy¶
-
EditWithRollbackManager.
Destroy
¶ Delete the Edit With Rollback Manager
Signature
Destroy()
New in version NX11.0.0.
License requirements: None.
Stop¶
-
EditWithRollbackManager.
Stop
¶ Rolls the model to the original current feature after the feature is edited with rollback
Signature
Stop()
New in version NX11.0.0.
License requirements: None.
UpdateFeature¶
-
EditWithRollbackManager.
UpdateFeature
¶ Updates the feature after the feature is edited with rollback
Signature
UpdateFeature(errorDuringFeatureEdit)
Parameters: errorDuringFeatureEdit (bool) – True if feature edit resulted in an error. False otherwise New in version NX11.0.0.
License requirements: None.