2026 Class
Changes 5
C

MacroModule

Description:
A container for individual macros. As it relates to the macros editor, one MacroModule represents a project that can be loaded and edited from within the editor.
Inheritance Hierarchy:
System.Object
  Autodesk.Revit.DB.Macros.MacroModule
public class MacroModule : IEnumerable<Macro>, 
	IDisposable
Name Return Type Description Inherited From
M Dispose() None Releases all resources used by the MacroModule
M Equals None Determines whether the specified object is equal to the current object. (Inherited from Object ) Object
M GetBasicIEnumerator() IEnumerator Returns an enumerator that iterates through a collection.
M GetEnumerator() IEnumerator<Macro> Returns an enumerator that iterates through a collection.
M GetHashCode None Serves as the default hash function. (Inherited from Object ) Object
M GetMacro(String) Macro Gets the macro with the give name.
M GetMacroModuleIterator() MacroModuleIterator Returns a Macro module iterator that iterates through the collection.
M GetType None Gets the Type of the current instance. (Inherited from Object ) Object
M ToString None Returns a string that represents the current object. (Inherited from Object ) Object
Name Return Type Description Inherited From
P Environment MacroEnvironment The Macro environment.
P IsValidObject Boolean Specifies whether the .NET object represents a valid Revit entity.
P MacroLanguageType MacroLanguageType The Macro language type.
P MacroManager MacroManager The Macro manager.
P ModuleFolder string The module folder.
P ModuleStatus ModuleStatus The module status.
P Name string The name of the module.