MacroManager.AddModule Method

MacroManagerAddModule Method

Adds a MacroModule to the application.

Namespace: Autodesk.Revit.DB.Macros
Assembly: RevitAPIMacros (in RevitAPIMacros.dll) Version: 25.3.0.0 (25.3.0.0)
Syntax
public MacroModule AddModule(
	ModuleSettings moduleSettings,
	IModuleMaker maker
)
Public Function AddModule ( 
	moduleSettings As ModuleSettings,
	maker As IModuleMaker
) As MacroModule
public:
MacroModule^ AddModule(
	ModuleSettings^ moduleSettings, 
	IModuleMaker^ maker
)
member AddModule : 
        moduleSettings : ModuleSettings * 
        maker : IModuleMaker -> MacroModule 

Parameters

moduleSettings  ModuleSettings
The module settings.
maker  IModuleMaker
The interface to create module project.

Return Value

MacroModule
The new module.
Exceptions
ExceptionCondition
ArgumentException Thrown when the module name is duplicated with the existing one, or the name is too long, or the name contains invalid identifier(s), such as include "#", "%", ... and key words in C#.
ArgumentNullException A non-optional argument was null
See Also