MacroModule
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
Namespace: Autodesk.Revit.DB.Macros
Assembly: RevitAPIMacros (in RevitAPIMacros.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public class MacroModule : IEnumerable<Macro>, IDisposable
The MacroModule type exposes the following members.
Properties
Name
Description
Public Property
Environment
The Macro environment.
Public Property
IsValidObject
Specifies whether the .NET object represents a valid Revit entity.
Public Property
MacroLanguageType
The Macro language type.
Public Property
MacroManager
The Macro manager.
Public Property
ModuleFolder
The module folder.
Public Property
ModuleStatus
The module status.
Public Property
Name
The name of the module.
Methods
Name
Description
Public Method
Dispose
Releases all resources used by the MacroModule
Public Method
Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object)
Protected Method
GetBasicIEnumerator
Returns an enumerator that iterates through a collection.
Public Method
GetEnumerator
Returns an enumerator that iterates through a collection.
Public Method
GetHashCode
Serves as the default hash function.
(Inherited from Object)
Public Method
GetMacro
Gets the macro with the give name.
Public Method
GetMacroModuleIterator
Returns a Macro module iterator that iterates through the collection.
Public Method
GetType
Gets the Type of the current instance.
(Inherited from Object)
Public Method
ToString
Returns a string that represents the current object.
(Inherited from Object)