RVTDocs.com

MacroManager.AddModule

Method
Description:
Adds a MacroModule to the application.
Syntax
public MacroModule AddModule(
	ModuleSettings moduleSettings,
	IModuleMaker maker
)
Parameters
Parameter Type Description
moduleSettings ModuleSettings The module settings.
maker IModuleMaker The interface to create module project.
Return Value
Type Description
MacroModule The new module.
Exceptions
Exception Condition
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