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
)
Public Function PushUndoRecord (
name As String,
action As GH_UndoAction
) As Guid
Parameters
- name
- Type: SystemString
Name of undo record. - action
- Type: Grasshopper.Kernel.UndoGH_UndoAction
Undo action.
Return Value
Type:
GuidThe ID of the newly created undo record.
See Also