ExportLayerTable Class

ExportLayerTable Class

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.
Inheritance Hierarchy
SystemObject
  Autodesk.Revit.DBExportLayerTable

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.3.0.0 (25.3.0.0)
Syntax
public class ExportLayerTable : IEnumerable<KeyValuePair<ExportLayerKey, ExportLayerInfo>>, 
	IDisposable
Public Class ExportLayerTable
	Implements IEnumerable(Of KeyValuePair(Of ExportLayerKey, ExportLayerInfo)), 
	IDisposable
public ref class ExportLayerTable : IEnumerable<KeyValuePair<ExportLayerKey^, ExportLayerInfo^>>, 
	IDisposable
type ExportLayerTable = 
    class
        interface IEnumerable<KeyValuePair<ExportLayerKey, ExportLayerInfo>>
        interface IDisposable
    end

The ExportLayerTable type exposes the following members.

Constructors
 NameDescription
Public methodExportLayerTable Constructs a new ExportLayerTable with default values.
Top
Properties
 NameDescription
Public propertyCount Count of the items contained in the collection.
Public propertyIsValidObject Specifies whether the .NET object represents a valid Revit entity.
Public propertyItem A copy of the ExportLayerInfo item that corresponds to the layer's ExportLayerKey.
Top
Methods
 NameDescription
Public methodAdd Inserts a (key,info) pair into Export layer table.
Public methodClear Removes all contents stored in the table.
Public methodContainsKey Checks whether a layer key exists in the table.
Public methodDisposeReleases all resources used by the ExportLayerTable
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodStatic memberGetAvaliableLayerModifierTypes Gets all the avaliable layer modifier types for the layer key.
Protected methodGetBasicIEnumeratorReturns an enumerator that iterates through a collection.
Public methodGetEnumeratorReturns an enumerator that iterates through a collection.
Public methodGetExportLayerInfo Gets a copy of the layer info associated to the input pattern key.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetKeys Gets all the keys stored in the map.
Public methodGetLayerTableIteratorReturns a LayerTableIterator that iterates through the collection.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodGetValues Returns all the values stored in the map.
Public methodRemove Removes the pair (key, info) by pattern key.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Remarks

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.

See Also