GH_GuidTable

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

Properties

Count

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

IsEmpty

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

Methods

Add

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

AllObjects

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

Clear

#
Clear the entire table.
public void Clear()

Contains

#
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).
public bool Contains(
id
Object ID to test for.
)

Objects

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