NX Open C++ Reference Guide
|
Represents an object that stores transient data during Edit with Rollback of a feature. More...
Public Member Functions | |
void | Destroy () |
Delete the Edit With Rollback Manager Created in NX11.0.0. More... | |
void | Stop () |
Rolls the model to the original current feature after the feature is edited with rollback Created in NX11.0.0. More... | |
void | UpdateFeature (bool errorDuringFeatureEdit) |
Updates the feature after the feature is edited with rollback Created in NX11.0.0. More... | |
Public Member Functions inherited from NXOpen::TaggedObject | |
tag_t | Tag () const |
Returns the tag of this object. More... | |
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 into NXOpen::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 into NXOpen::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 to NXOpen::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 class NXOpen::Features::EditWithRollbackManager .
Hence the sequence of calls -
An instance of this class can be created by a call to Features.FeatureCollection.StartEditWithRollbackManager
Created in NX11.0.0.
void NXOpen::Features::EditWithRollbackManager::Destroy | ( | ) |
Delete the Edit With Rollback Manager
Created in NX11.0.0.
License requirements : None
void NXOpen::Features::EditWithRollbackManager::Stop | ( | ) |
Rolls the model to the original current feature after the feature is edited with rollback
Created in NX11.0.0.
License requirements : None
void NXOpen::Features::EditWithRollbackManager::UpdateFeature | ( | bool | errorDuringFeatureEdit | ) |
Updates the feature after the feature is edited with rollback
Created in NX11.0.0.
License requirements : None
errorDuringFeatureEdit | True if feature edit resulted in an error. False otherwise |