NX Open C++ Reference Guide
Public Member Functions | List of all members
NXOpen::Features::EditWithRollbackManager Class Reference

Represents an object that stores transient data during Edit with Rollback of a feature. More...

Inheritance diagram for NXOpen::Features::EditWithRollbackManager:
NXOpen::TaggedObject

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...
 

Detailed Description

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 -

  1. NXOpen::Features::FeatureCollection::StartEditWithRollbackManager
  2. Feature edit using builder
  3. NXOpen::Features::EditWithRollbackManager::UpdateFeature
  4. NXOpen::Features::EditWithRollbackManager::Stop
  5. NXOpen::Features::EditWithRollbackManager::Destroy



An instance of this class can be created by a call to Features.FeatureCollection.StartEditWithRollbackManager

Created in NX11.0.0.

Member Function Documentation

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

Parameters
errorDuringFeatureEditTrue if feature edit resulted in an error. False otherwise

The documentation for this class was generated from the following file:
Copyright 2017 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.