Share

DBObject.ApplyPartialUndo Method

Description

This function is called by AutoCAD whenever an Undo operation is performed on the DBObject object and the object has consistently set the autoUndo Boolean in all assertWriteEnabled() calls to false, thus indicating that it's using the partial undo mechanism.

When an object transaction consists of all partial Undo modifications, upon Undo, this virtual member function is called. As with dwgInFields(), this member is supposed to be able to know how many and what types of fields to scan, and to be able to stop after reading what it expects.

Note

If, during the time the object is open, different calls to assertWriteEnabled() pass in different parameter values, the first encounter of an true for the autoUndo parameter causes all partial Undo information recorded so far to be flushed, then replaced by a full Undo recording. The filer status is changed to indicate a full undo has been recorded. Once this has occurred, the applyPartialUndo() function is not called for a subsequent Undo operation since the full Undo has taken place.

Visual Basic

Public virtual Function ApplyPartialUndo(
    undoFiler As DwgFiler, 
    classObj As RXClass
) As void

C#

public virtual void ApplyPartialUndo(
    DwgFiler undoFiler, 
    RXClass classObj
);

Parameters

Parameters Description
DwgFiler undoFiler The undo filer containing the partial undo information to be re-instated
RXClass classObj The RXClass object for the class that is expected to be handling this Undo information

Links

DBObject Class, Autodesk.AutoCAD.DatabaseServices Namespace

Was this information helpful?