GH_GuidTable

References
public class GH_GuidTable
Maintains a quick-access collection of Guids and IGH_ActiveObject references.

Properties

Count

#
public int Count { get; }
Gets the number of stored IDs in the table.

IsEmpty

#
public bool IsEmpty { get; }
Gets a value whether the table is empty.

Methods

Add

#
public void Add(Guid id, IGH_ActiveObject obj)
Register a new id+object key-value pair with the Table. If the combination already exists, it won't be added.
id (Guid)Rhino object ID to register.
obj (IGH_ActiveObject)Grasshopper canvas object that references it.

AllObjects

#
public List<IGH_ActiveObject> AllObjects()
Collect all the objects that are stored in this Table. The result might contain duplicates.

Clear

#
public void Clear()
Clear the entire table.

Contains

#
public bool Contains(Guid id)
Fast test to see if a Rhino object ID has been registered in the table. Negative tests are O(1), positive tests are O(N).
id (Guid)Object ID to test for.

Objects

#
public List<IGH_ActiveObject> Objects(Guid id)
Collect all the objects that are associates with a given ID.
id (Guid)ID to test for.