@MatrixRatrix wrote:
Hello,
I know that all commands after finalization are written to undo and can be undone with the “undo” command.
But, in my command I have to undone some actions during script execution, so , I remember try use the
“BeginUndoRecord” and “EndUndoRecord” only actions that can be undone.Ex:
var customUndo = Rhino.RhinoDoc.ActiveDoc.BeginUndoRecord(“UndoCuston”);
“”""" do stuff"""""
Rhino.RhinoDoc.ActiveDoc.EndUndoRecord(undo);if (condition==true)
{
customUndo
}it’s possible?
thanks
Posts: 1
Participants: 1