History
ReferencesProvides access to the undo/redo history of a Grasshopper document.
Properties
Methods
Do
#Adds a new undo node to this history as the primary child of the current FirstUndo node. The new node will automatically become the new FirstUndo node and the FirstRedo field will go blank.
public void Do()
Record
record
Record to add.
Do
#Do
#Adds a new undo node to this history as the primary child of the current FirstUndo node. The new node will automatically become the new FirstUndo node and the FirstRedo field will go blank.
Do
#Adds a new undo node to this history as the primary child of the current FirstUndo node. The new node will automatically become the new FirstUndo node and the FirstRedo field will go blank.
Do
#FindCreationAction
#Find the youngest action in the central undo sequence which covers the creation of an object.
FindDeletionAction
#Find the youngest action in the central undo sequence which covers the deletion of an object.
FindDeletionRecord
#Find the youngest record in the central undo sequence which covers the deletion of an object.
Move
#Move a node to a new parent.
public void Move()
Node[]
nodes,
Nodes to move. Each subsequent node in the array must be the primary child of the previous node.
(Node Parent, Node Child)
link,
The parent+child pair into which to move the nodes.
showStateWarning
If true, and if not already disabled by the user, and if applicable, shows the warning regarding the dangers of moving records in one state into a region with a different state.
Redo
#public void Redo()
RedoActionsOfType<T>
#Enumerate over all undo actions of a specific type in the central redo sequence.
Remove
#Remove a node and all its secondary children from this history, and connect the primary child to the parent if possible.
public void Remove()
Node
node
ShowHistory
#Show the full history in a window.
public Form ShowHistory()
Window
owner
Returns: Form containing the history browser.
Undo
#public void Undo()
UndoActionsOfType<T>
#Enumerate over all undo actions of a specific type in the central undo sequence.
Events
Modified
#This event is raised whenever the topology of the history graph is changed. The Modified event always follows a more specific event such as NodeAdded, NodeMerged or NodeMoved.
NodeAdded
#This event is raised whenever a new node is added to the history. This event is always followed by the Modified event.
NodeMerged
#This event is raised whenever a node is merged with its primary child. This event is always followed by the Modified event.
NodeMoved
#This event is raised whenever a node and all its child nodes are moved from one location in the history to another. This event is always followed by the Modified event.