2027 Class
Changes 0
C

ExportLineweightTable

Description:
A table supporting a mapping of line weights in Revit to line weight names that will be set in the target export format.
Remarks:

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

Inheritance Hierarchy:
System.Object
  Autodesk.Revit.DB.ExportLineweightTable
public class ExportLineweightTable : IEnumerable<KeyValuePair<ExportLineweightKey, ExportLineweightInfo>>, 
	IDisposable
Name Return Type Description Inherited From
C ExportLineweightTable() None Constructs a new ExportLineweightTable with default settings.
Name Return Type Description Inherited From
M Add(ExportLineweightKey, ExportLineweightInfo) None Inserts a (key, info) pair into Export line weight table.
M Clear() None Removes all contents stored in Export line weight table.
M ContainsKey(ExportLineweightKey) Boolean Checks whether a line weight key exists in the table.
M Dispose() None Releases all resources used by the ExportLineweightTable
M Equals None Determines whether the specified object is equal to the current object. (Inherited from Object ) Object
M GetBasicIEnumerator() IEnumerator Returns an enumerator that iterates through a collection.
M GetEnumerator() ExportLineweightKey Returns an enumerator that iterates through a collection.
M GetExportLineweightInfo(ExportLineweightKey) ExportLineweightInfo Gets a copy of the ExportLineweightInfo corresponding to the given ExportLineweightKey.
M GetHashCode None Serves as the default hash function. (Inherited from Object ) Object
M GetKeys() IList<ExportLineweightKey> Gets all the keys stored in the map.
M GetLineweightTableIterator() ExportLineweightTableIterator Returns a ExportLineweightTableIterator that iterates through the collection.
M GetType None Gets the Type of the current instance. (Inherited from Object ) Object
M GetValues() IList<ExportLineweightInfo> Returns all the values stored in the map.
M Remove(ExportLineweightKey) None Removes the pair (key, info) corresponding to the given ExportLineweightKey.
M ToString None Returns a string that represents the current object. (Inherited from Object ) Object
Name Return Type Description Inherited From
P Count int Count of the items contained in the collection.
P IsValidObject Boolean Specifies whether the .NET object represents a valid Revit entity.
P Item ExportLineweightInfo A copy of the ExportLineweightInfo for the line weight's ExportLineweightKey .