Version: |
2.0 |
Description: |
Retrieves the current undo level for placing entities. |
Declaration: |
|
C/C++ |
extern "C" short WINAPI VCGetCurrentUndoLevel(short* iError); |
Delphi |
function VCGetCurrentUndoLevel(var iError: Smallint):Smallint; stdcall; |
ActiveX/COM |
Function GetCurrentUndoLevel() As Integer |
Parameters: |
Returns the current entity undo level. |
Notes: |
Visual CADD™ maintains a complete undo level for all entities added to the database. This information is then used when undo or redo operations are activated. Visual CADD™ automatically increments the undo level as each command is completed the entity then takes on the last level after the operation is complete. When adding entities directly through the API, an application can monitor the undo level allowing for custom undo operations. Entities added using the API take on the active undo level but do not increment the level. This allow multiple add operation to be undone with a single operation. An application can bypass this functionality by utilizing VCBeginOperation and VCEndOperation to set application specific undo levels. The application can also monitor the current undo level in order to track the sequence an entity is added. |
See Also: |