RhinoCommon API
File3dmMaterialTable Class |
Provides access to materials in the 3dm file.

SystemObject
Rhino.FileIOCommonComponentTableMaterial
Rhino.FileIOFile3dmCommonComponentTableMaterial
Rhino.FileIOFile3dmMaterialTable
Rhino.FileIOCommonComponentTableMaterial
Rhino.FileIOFile3dmCommonComponentTableMaterial
Rhino.FileIOFile3dmMaterialTable
Namespace: Rhino.FileIO
Assembly: RhinoCommon (in RhinoCommon.dll)

public class File3dmMaterialTable : File3dmCommonComponentTable<Material>, IList<Material>, ICollection<Material>, IEnumerable<Material>, IEnumerable
Public Class File3dmMaterialTable Inherits File3dmCommonComponentTable(Of Material) Implements IList(Of Material), ICollection(Of Material), IEnumerable(Of Material), IEnumerable
The File3dmMaterialTable type exposes the following members.

Name | Description | |
---|---|---|
![]() | ComponentType |
Returns RenderMaterial.
(Overrides CommonComponentTableTComponentType.) |
![]() | Count |
Returns the count of all items, including deleted ones.
(Inherited from CommonComponentTableT.) |

Name | Description | |
---|---|---|
![]() | Add |
Adds an item.
(Inherited from File3dmCommonComponentTableT.) |
![]() | Clear |
Marks all items as deleted.
(Inherited from CommonComponentTableT.) |
![]() | Delete(Int32) |
Flags a component as deleted.
(Inherited from File3dmCommonComponentTableT.) |
![]() | Delete(T) |
Flags a component as deleted.
(Inherited from File3dmCommonComponentTableT.) |
![]() | Dump | Prepares a text dump of object table. (Inherited from File3dmCommonComponentTableT.) |
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | (Inherited from Object.) |
![]() | 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/openning operations. This function will not find grip objects.
(Inherited from CommonComponentTableT.) |
![]() | FindIndex |
Retrieves a material based on Index. This seach type of search is discouraged.
We are moving towards using only IDs for all tables.
|
![]() | GetEnumerator |
Returns the enumerator that yields all items.
(Inherited from CommonComponentTableT.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | ToString | (Inherited from Object.) |

Rhino for Windows
Supported in: 6.8