Grasshopper API
GH_DocumentGetAllInstanceIDs Method |
Get a sorted list of all the IGH_DocumentObject instance IDs in this document.
Namespace: Grasshopper.Kernel
Assembly: Grasshopper (in Grasshopper.dll)

public SortedList<Guid, int> GetAllInstanceIDs( bool topLevelOnly )
Public Function GetAllInstanceIDs ( topLevelOnly As Boolean ) As SortedList(Of Guid, Integer)
Parameters
- topLevelOnly
- Type: SystemBoolean
If true, only top level objects are considered.
Return Value
Type: SortedListGuid, Int32A sorted fictionary of IDs and Integers. The integers represent the indices of the top-level objects that contained the ids. Since the object list inside a GH_Document is not static, these indices will not remain valid.
