Quantcast
Channel: Rhino Developer - McNeel Forum
Viewing all articles
Browse latest Browse all 8546

Undo Record insid command

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 8546

Trending Articles