#include "ltwrappr.h"
L_INT LAutomation::AddUndoNode(dwFlags);
Manually adds an undo node to the automation object.
Reserved for future use. Use 0.
| Value | Meaning |
|---|---|
| SUCCESS | The function was successful. |
| < 1 | An error occurred. Refer to Return Codes. |
This function adds an undo node to the automation object. When used with LAutomation::SetUndoEnabled, a lengthy operation, consisting of multiple steps, can be combined into one undo call to LAutomation::Undo. To accomplish this, use the following steps:
Required DLLs and Libraries
This example shows how to group several vector operations into a single undo node.
L_INT LAutomation_AddUndoNodeExample(LAutomation &Automation){L_INT nRet;// Add an undo node manuallynRet = Automation.AddUndoNode(0);if(nRet != SUCCESS)return nRet;// Disable the undo feature */nRet = Automation.SetUndoEnabled (FALSE);if(nRet != SUCCESS)return nRet;// Do multiple operations on the automation object// Re-enable the undo featurenRet = Automation.SetUndoEnabled(TRUE);if(nRet != SUCCESS)return nRet;return SUCCESS;}