Undo and Redo
- Last UpdatedJan 09, 2024
- 1 minute read
The Undo and Redo functionality has been exposed to PML so you can create your own set of undoable events.
There are several ways Marine adds entries to the undo system:
-
Using the MARKDB / ENDMARKDB commands. The syntax is as follows:
MARKDB ‘text’
-
where text is an optional description to be included with the mark. This causes a mark to be made in the database and an entry made in the undo stack. You should make your database changes, and then use the command
ENDMARKDB
-
By creating a PML undoable object and adding it to the undo stack. See the Software customization Reference Manual for a fuller description of this object. You should create an undoable object, set up the undo and redo execution strings, and then call the method add() to mark the database and add the undoable to the undo stack. Make your database changes, and then call the method endUndoable().
-
Automatically whenever a model element is moved using graphical interaction techniques in Model Editor.