GetEnumerator Method


Macro Module Get Enumerator Method

Returns an enumerator that iterates through a collection.

Namespace: Autodesk.Revit.DB.Macros
Assembly: RevitAPIMacros (in RevitAPIMacros.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public virtual IEnumerator<Macro> GetEnumerator()

Return Value

IEnumerator Macro
An IEnumerator object that can be used to iterate through the collection.

Implements

IEnumerable T GetEnumerator
See Also
ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →