ExportLinetypeTable Class

A table supporting a mapping of linetypes in Revit to linetype names that will be set in the target export format.
Inheritance Hierarchy
SystemObject
  Autodesk.Revit.DBExportLinetypeTable

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public class ExportLinetypeTable : IEnumerable<KeyValuePair<ExportLinetypeKey, ExportLinetypeInfo>>, 
	IDisposable

The ExportLinetypeTable type exposes the following members.

Constructors
 NameDescription
Public methodExportLinetypeTable Constructs a new ExportLinetypeTable 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 ExportLinetypeInfo for the linetype's ExportLinetypeKey.
Top
Methods
 NameDescription
Public methodAdd Inserts a (key, info) pair into Export line type table.
Public methodClear Removes all contents stored in Export line type table.
Public methodContainsKey Checks whether a pattern key exists in the table.
Public methodDisposeReleases all resources used by the ExportLinetypeTable
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodGetBasicIEnumeratorReturns an enumerator that iterates through a collection.
Public methodGetEnumeratorReturns an enumerator that iterates through a collection.
Public methodGetExportLinetypeInfo Gets a copy of the ExportLinetypeInfo corresponding to the given ExportLinetypeKey.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetKeys Gets all the keys stored in the map.
Public methodGetLinetypeTableIteratorReturns a ExportLinetypeTableIterator 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) corresponding to the given ExportLinetypeKey.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Remarks

This table is structured as a mapping from ExportLinetypeKey to ExportLinetypeInfo members. The ExportLinetypeKey contains the identification information for the pattern table: the Revit linetype name. The ExportLinetypeInfo contains the linetype 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 ExportLinetypeInfo returned will be a copy of the ExportLinetypeInfo from the table. In order to make changes to the ExportLinetypeInfo and use those settings during export, set the modified ExportLinetypeInfo back into the table using the same key.

See Also