Grasshopper API
GH_DocumentGH_UndoUtilCreateEnabledEvent Method |
Create a new undo record for an object enabled change.
This function must be called before the enabled flag is changed.
Namespace: Grasshopper.Kernel
Assembly: Grasshopper (in Grasshopper.dll)

public GH_UndoRecord CreateEnabledEvent( string name, IGH_ActiveObject obj )
Public Function CreateEnabledEvent ( name As String, obj As IGH_ActiveObject ) As GH_UndoRecord
Parameters
- name
- Type: SystemString
Name of undo record. - obj
- Type: Grasshopper.KernelIGH_ActiveObject
Target object for undo record.
Return Value
Type: GH_UndoRecordA newly created undo record.
