Revit 2026 API
Macro |
Removes a MacroModule.
Namespace: Autodesk.Revit.DB.Macros
Assembly: RevitAPIMacros (in RevitAPIMacros.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
public void RemoveModule( MacroModule module )
Public Sub RemoveModule ( module As MacroModule )
public: void RemoveModule( MacroModule^ module )
member RemoveModule : module : MacroModule -> unit
Parameters
- module MacroModule
- The module will be removed.
| Exception | Condition |
|---|---|
| ArgumentException | The given module is not a member of this collection. |
| ArgumentNullException | A non-optional argument was null |
| InvalidOperationException | Thrown when the given module is a UI module. |
See Also