ManifestTable

References
Maintains an index to every model component that is in the 3dm file. This is the "more comprehensive" table that contains all objects in all other tables.

Properties

ComponentType

#Since v6.0
public ModelComponentType ComponentType { get; }
ComponentType

Count

#Since v6.0
public int Count { get; }
Total number of items in the manifest, including deleted items.

LongCount

#Since v6.0
public long LongCount { get; }
Total number of items in the manifest, including deleted items.

Parent

#Since v6.0
public abstract object Parent { get; }
Returns the parent object. This is the RhinoDoc, or the File3md file.

Methods

ActiveObjectCount

#Since v6.0
public int ActiveObjectCount(ModelComponentType type)
Total number of items in the manifest, including deleted items.
type (ModelComponentType)

Clear

#Since v6.0
public virtual void Clear()
Marks all items as deleted.

Contains

#Since v6.0
public bool Contains(ModelComponent item)
Determines if an items is contained in this table.
item (ModelComponent)An item, or null. Null is never contained.
True if the item is contained; otherwise, false.

CopyTo

#Since v6.0
public void CopyTo(ModelComponent[] array, int arrayIndex)
Copies the content of this table to an array.
array (ModelComponent[])The array to copy to.
arrayIndex (int)The position in the array from which to start copying.

FindId

#Since v6.0
public abstract ModelComponent FindId(Guid id, ModelComponentType type)
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.
id (Guid)ID of model component to search for.
type (ModelComponentType)The type to be searched. If this is ModelComponentType.Unset then all types are searched.
Reference to the rhino object with the objectId or null if no such object could be found.

FindId

#Since v6.0
public abstract ModelComponent FindId(Guid id)
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.
id (Guid)ID of model component to search for.
Reference to the rhino object with the objectId or null if no such object could be found.
FindId

FindId<T>

#Since v6.0
public T FindId<T>(Guid id)
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.
id (Guid)Index of model component to search for.
Reference to the rhino object or null if no such object could be found.

FindIndex

#Since v6.0
public abstract ModelComponent FindIndex(int index, ModelComponentType type)
Uses the index to find a model component. The index is the value that is stored in the .Index property.
index (int)Index of model component to search for.
type (ModelComponentType)The type to be searched. Cannot be ModelComponentType.Unset.
Reference to the rhino object or null if no such object could be found.

FindIndex<T>

#Since v6.0
public T FindIndex<T>(int index)
Uses the index to find a model component. The index is the value that is stored in the .Index property.
index (int)Index of model component to search for.
Reference to the rhino object or null if no such object could be found.

FindName

#Since v6.0
public abstract ModelComponent FindName(string name, ModelComponentType type, Guid parent)
Uses the name to find a model component. The name is the value that is stored in the .Name property. Deleted objects have no name.
name (string)Name of model component to search for.
type (ModelComponentType)The type to be searched. Cannot be ModelComponentType.Unset.
parent (Guid)Parent object id. This is only required for layers.
Reference to the rhino object or null if no such object could be found.

FindName<T>

#Since v6.0
public T FindName<T>(string name, Guid parent)
Uses the name to find a model component. The name is the value that is stored in the .Name property. Deleted objects have no name.
name (string)Name of model component to search for.
parent (Guid)Parent object id. This is only required for layers.
Reference to the rhino object or null if no such object could be found.

FindNameHash

#Since v6.0
public abstract ModelComponent FindNameHash(NameHash nameHash, ModelComponentType type)
Uses the hash of the name to find a model component. Deleted objects have no name.
nameHash (NameHash)NameHash of model component to search for.
type (ModelComponentType)The type to be searched. Cannot be ModelComponentType.Unset.
Reference to the rhino object or null if no such object could be found.

FindNameHash<T>

#Since v6.0
public T FindNameHash<T>(NameHash nameHash)
Uses the hash of the name to find a model component. Deleted objects have no name.
nameHash (NameHash)Name hash of model component to search for.

GetEnumerator

#Since v6.0
public virtual IEnumerator<ModelComponent> GetEnumerator()
Visits all model components in the document, including default ones.
An enumerator.

GetEnumerator

#Since v6.0
public abstract IEnumerator<ModelComponent> GetEnumerator(ModelComponentType type)
Returns an enumerators that yields all model components, including default ones, relating to a particular type.
type (ModelComponentType)The model component type.
An enumerator.

GetEnumerator<T>

#Since v6.0
public virtual IEnumerator<T> GetEnumerator<T>()
Visits all model components in the document, including default ones.
An enumerator.

GetModelComponentTypeFromGenericType<T>

#Since v6.0
public static ModelComponentType GetModelComponentTypeFromGenericType<T>()
Returns the result of the ComponentType property of a ModelComponent.
A ModelComponentType.
Explicit

ICommonComponentTable<ModelComponent>.FindNameHash

#Since v6.0
nameHash (NameHash)
FindNameHash
Explicit

IEnumerable.GetEnumerator

#Since v6.0
IEnumerator IEnumerable.GetEnumerator()