Version: |
2.0 |
Description: |
Retrieves the undo level for the current entity. |
Declaration: |
|
C/C++ |
extern "C" short WINAPI VCGetEntityUndoLevel(short* iError, ENTITYHANDLE hE); |
Delphi |
function VCGetEntityUndoLevel(var iError: Smallint; hE: Longint):Smallint; stdcall; |
ActiveX/COM |
Function GetEntityUndoLevel(ByVal hE As Long) As Integer |
Parameters: |
hE- handle to the entity |
Notes: |
Each entity in the database maintains a flag indicating the level of undo. Visual CADD™ supports a very large number of undo operations, up to 255, and maintains this capability through this flag. The flag value changes with any modification done on the entity, for example moving the entity. An application can check this flag prior to an operation to ensure the user has not changed or altered an entity outside the applications control. |
See Also: |
VCAppExit, VCBeginOperation, VCEndOperation, VCIsRedoable, VCUndo |