RemoveModule Method


Macro Manager Remove Module Method

Removes a MacroModule.

Namespace: Autodesk.Revit.DB.Macros
Assembly: RevitAPIMacros (in RevitAPIMacros.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public void RemoveModule(
	MacroModule module
)

Parameters

module MacroModule
The module will be removed.
Exceptions
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
ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →