I’m working on a script that launches a dialog via Rhino.UI.Dialogs.ShowSemiModal(). Buttons in the interface let the user manipulate the document geometry. For example trimming lines, adding circles, etc.
I’d like to put an “Undo Last Operation” button in the UI to let the user undo the last change they made.
I tried the obvious call to rs.Command(“Undo”) but Rhino reports “Nothing to undo.”. Rhino is of course accumulating my changes because when I exit the script I can undo the entire thing.
Is there any way I can control the undo stack myself somehow? That is place begin and end points and jump back to previous begin points. Something like that?