ExportLayerTable
A table supporting a mapping of category and subcategory to layer name and other layer properties that will be set in the target export format.
This table is structured as a mapping from ExportLayerKey to ExportLayerInfo members. The ExportLayerKey contains the identification information for the layer table: the Revit category and subcategory names. In addition, the key contains a SpecialType member used only to represent non-Revit categories that can be assigned specific layer information on export. The ExportLayerInfo contains the exported layer name, color name, and layer modifiers for standard and cut representations.
The table can be accessed via direct iteration as a collection of KeyValuePairs, or by traversal of the stored keys obtained from GetKeys(), or via specific lookup of a key constructed externally. In all cases, the ExportLayerInfo returned will be a copy of the ExportLayerInfo from the table. In order to make changes to the ExportLayerInfo and use those settings during export, set the modified ExportLayerInfo back into the table using the same key.
System.Object
Autodesk.Revit.DB.ExportLayerTable
public class ExportLayerTable : IEnumerable<KeyValuePair<ExportLayerKey, ExportLayerInfo>>,
IDisposable
| Name | Return Type | Description |
|---|---|---|
| ExportLayerTable() | None | Constructs a new ExportLayerTable with default values. |
| Name | Return Type | Description |
|---|---|---|
| Add(ExportLayerKey, ExportLayerInfo) | None | Inserts a (key,info) pair into Export layer table. |
| Clear() | None | Removes all contents stored in the table. |
| ContainsKey(ExportLayerKey) | bool | Checks whether a layer key exists in the table. |
| Dispose() | None | Releases all resources used by the |
| GetAvaliableLayerModifierTypes(Document, ExportLayerKey) | IList<ModifierType> | Gets all the avaliable layer modifier types for the layer key. |
| GetBasicIEnumerator() | IEnumerator | Returns an enumerator that iterates through a collection. |
| GetEnumerator() | IEnumerator | Returns an enumerator that iterates through a collection. |
| GetExportLayerInfo(ExportLayerKey) | ExportLayerInfo | Gets a copy of the layer info associated to the input pattern key. |
| GetKeys() | IList<ExportLayerKey> | Gets all the keys stored in the map. |
| GetLayerTableIterator() | ExportLayerTableIterator | Returns a LayerTableIterator that iterates through the collection. |
| GetValues() | IList<ExportLayerInfo> | Returns all the values stored in the map. |
| Remove(ExportLayerKey) | None | Removes the pair (key, info) by pattern key. |
| Name | Return Type | Description |
|---|---|---|
| Count | int | Count of the items contained in the collection. |
| IsValidObject | bool | Specifies whether the .NET object represents a valid Revit entity. |
| Item | ExportLayerInfo | A copy of the item that corresponds to the layer's . |