Undo in Fologram

Fologram doesn’t include an Undo button by default but it’s easy to implement yourself in Grasshopper with a single line of c# code. For a Rhino undo this is:

Rhino.RhinoApp.ExecuteCommand(Rhino.RhinoDoc.ActiveDoc, “Undo”);

and in Grasshopper it’s

GrasshopperDocument.UndoServer.PerformUndo();

You can then trigger the Undo operation from the Parameters panel in Fologram using a synchronised button. An example definition is attached:

Undo Example.gh (4.5 KB)

3 Likes