CommonComponentTable<T>
ReferencesNothing matches.
public abstract class CommonComponentTable<T> : ICommonComponentTable<T>, IList<T>, IReadOnlyList<T>
Provides a base table type that encompasses all document tables, both in RhinoDoc and File3dm.
Type parameters:
| T | A model component. where ModelComponent |
Properties
Indexers
Methods
Delete
#Deletes an item. Items that are deleted are still keeping their space, but the 'IsDeleted' flag is checked.
Parameters:
| item (T) | An item to delete. |
Returns: True if an items could be deleted (e.g., it was not locked).
FindId
#Uses the guid to find a model component. Deleted objects cannot be found by id. The guid is the value that is stored in the .Id property. In a single document, no two active objects have the same guid. If an object is replaced with a new object, then the guid persists. For example, if the _Move command moves an object, then the moved object inherits its guid from the starting object. If the Copy command copies an object, then the copy gets a new guid. This guid persists through file saving/opening operations. This function will not find grip objects.
GetEnumerator
#Returns the enumerator that yields all items.
Uses the hash of the name to find a model component. Deleted objects have no name.
Parameters:
| nameHash (NameHash) | NameHash of model component to search for. |
Returns: Reference to the rhino object or null if no such object could be found.
Implements: FindNameHash
Parameters:
| array (T[]) | |
| arrayIndex (int) |