Grasshopper API
GH_DocumentGH_UndoUtilCreateLayoutEvent Method (String, IEnumerableIGH_DocumentObject) |
Create a new undo record for a bunch of object layout changes.
This function must be called before the layouts are changed.
Namespace: Grasshopper.Kernel
Assembly: Grasshopper (in Grasshopper.dll)

public GH_UndoRecord CreateLayoutEvent( string name, IEnumerable<IGH_DocumentObject> objs )
Public Function CreateLayoutEvent ( name As String, objs As IEnumerable(Of IGH_DocumentObject) ) As GH_UndoRecord
Parameters
- name
- Type: SystemString
Name of undo record. - objs
- Type: System.Collections.GenericIEnumerableIGH_DocumentObject
Target objects for undo record.
Return Value
Type: GH_UndoRecordA newly created undo record.
