GetCurrent Method


Returns the current Macro module.

Namespace: Autodesk.Revit.DB.Macros
Assembly: RevitAPIMacros (in RevitAPIMacros.dll) Version: 2015.0.0.0 (2015.0.0.0)
Since: 2014

Syntax

C#
public MacroModule GetCurrent()
Visual Basic
Public Function GetCurrent As MacroModule
Visual C++
public:
MacroModule^ GetCurrent()

Return Value

The current Macro module.

Exceptions

Exception Condition
Autodesk.Revit.Exceptions InvalidOperationException There is no current item in the iterator.

See Also