ExportPatternTable
A table supporting a mapping of FillPatterns in Revit to pattern names that will be set in the target export format.
Inheritance Hierarchy
System.Object
Autodesk.Revit.DB.ExportPatternTable
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public class ExportPatternTable : IEnumerable<KeyValuePair<ExportPatternKey, ExportPatternInfo>>, IDisposableThe ExportPatternTable type exposes the following members.
Constructors
Name
Description
Public Method
ExportPatternTable
Constructs a new ExportPatternTable with default values.
Properties
Name
Description
Public Property
Count
Count of the items contained in the collection.
Public Property
IsValidObject
Specifies whether the .NET object represents a valid Revit entity.
Public Property
Item
A copy of the ExportPatternInfo for the pattern’s ExportPatternKey.
Methods
Name
Description
Public Method
Add
Inserts a (key,info) pair into Export pattern table.
Public Method
Clear
Removes all contents stored in the table.
Public Method
ContainsKey
Checks whether a pattern key exists in the table.
Public Method
Dispose
Releases all resources used by the ExportPatternTable
Public Method
Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object)
Protected Method
GetBasicIEnumerator
Returns an enumerator that iterates through a collection.
Public Method
GetEnumerator
Returns an enumerator that iterates through a collection.
Public Method
GetExportPatternInfo
Gets a copy of the pattern info associated to the input pattern key.
Public Method
GetHashCode
Serves as the default hash function.
(Inherited from Object)
Public Method
GetKeys
Gets all the keys stored in the map.
Public Method
GetPatternTableIterator
Returns a PatternTableIterator that iterates through the collection.
Public Method
GetType
Gets the Type of the current instance.
(Inherited from Object)
Public Method
GetValues
Returns all the values stored in the map.
Public Method
Remove
Removes the pair (key, info) by pattern key.
Public Method
ToString
Returns a string that represents the current object.
(Inherited from Object)
Remarks
This table is structured as a mapping from ExportPatternKey to ExportPatternInfo members. The ExportPatternKey contains the identification information for the pattern table: the Revit fill pattern type and name. The ExportPatternInfo contains the pattern name to use in the export format.
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 ExportPatternInfo returned will be a copy of the ExportPatternInfo from the table. In order to make changes to the ExportPatternInfo and use those settings during export, set the modified ExportPatternInfo back into the table using the same key.