Manager object for the Macro modules of the application.
Inheritance Hierarchy
System.ObjectAutodesk.Revit.DB.Macros.MacroManager
Namespace: Autodesk.Revit.DB.Macros
Assembly: RevitAPIMacros (in RevitAPIMacros.dll) Version: 26.4.0.0 (26.4.0.0)
Syntax
C#
public class MacroManager : IEnumerable<MacroModule>, IDisposable
The MacroManager type exposes the following members.
Properties
| Name | Description | |
|---|---|---|
| Count | The count. | |
| Folder | The modules folder. | |
| IsEnabled | Indicates if macros stored in this MacroManager are enabled. | |
| IsValidObject | Specifies whether the .NET object represents a valid Revit entity. |
Methods
| Name | Description | |
|---|---|---|
| AddModule | Adds a MacroModule to the application. | |
| Contains | Indicates the given module is a member of this collection. | |
| Dispose | Releases all resources used by the MacroManager | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
| GetApplicationMacroSecurityOptions | Gets the application macro security options. | |
| GetBasicIEnumerator | Returns an enumerator that iterates through a collection. | |
| GetEnumerator | Returns an enumerator that iterates through a collection. | |
| GetHashCode | Serves as the default hash function. (Inherited from Object) | |
| GetMacroManager | Gets the Macro manager from the application. | |
| GetMacroManagerIterator | Returns a Macro manager iterator that iterates through the collection. | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| RemoveModule | Removes a MacroModule. | |
| SetApplicationMacroSecurityOptions | Sets the application macro security options. | |
| ToString | Returns a string that represents the current object. (Inherited from Object) |
