Skip to content

CLEAR_UNDO_REDO ​

CLEAR_UNDO_REDO clears all actions in a model window's undo/redo manager.

Syntax ​

leo-grammar
CC "Modeling" CLEAR_UNDO_REDO modelid:intValue

Parameters ​

  • modelid (idValue) -

Returns ​

none

Details ​

When a model is changed by an AdoScript, the current undo/redo status of that model is no longer up-to-date. When CC "Core" SET_ATTR_VAL is called, the undo/redo status of the changed model is cleared automatically. This covers most cases.
This command has to be called when the undo/redo status shall be cleared in a context where SET_ATTR_VAL is not being called.

See Also ​

Examples ​

Versions and Changes ​

Available since ADOxx 1.3