Click or drag to resize

GH_UndoServerPushUndoRecord Method (String, GH_UndoAction)

Add a new undo record to the undo stack, this function clears the Redo stack.

Namespace:  Grasshopper.Kernel.Undo
Assembly:  Grasshopper (in Grasshopper.dll)
Syntax
public Guid PushUndoRecord(
	string name,
	GH_UndoAction action
)

Parameters

name
Type: SystemString
Name of undo record.
action
Type: Grasshopper.Kernel.UndoGH_UndoAction
Undo action.

Return Value

Type: Guid
The ID of the newly created undo record.
See Also