Revit 2025.3 API
Duct |
Gets the item at the current position of the iterator.
Namespace: Autodesk.Revit.DB.Mechanical
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.3.0.0 (25.3.0.0)
Syntax
public virtual KeyValuePair<DuctShape, DuctSizes> Current { get; }
Public Overridable ReadOnly Property Current As KeyValuePair(Of DuctShape, DuctSizes) Get
public: virtual property KeyValuePair<DuctShape, DuctSizes^> Current { KeyValuePair<DuctShape, DuctSizes^> get (); }
abstract Current : KeyValuePair<DuctShape, DuctSizes> with get override Current : KeyValuePair<DuctShape, DuctSizes> with get
Property Value
KeyValuePairDuctShape, DuctSizesImplements
IEnumeratorTCurrent
Exception | Condition |
---|---|
InvalidOperationException | There is no current item in the iterator. |

There is no current item if the iterator has not started yet or has been done.
See Also