MacroManager
Description:
Manager object for the Macro modules of the application.
Manager object for the Macro modules of the application.
Inheritance Hierarchy:
System.Object
Autodesk.Revit.DB.Macros.MacroManager
System.Object
Autodesk.Revit.DB.Macros.MacroManager
public class MacroManager : IEnumerable<MacroModule>,
IDisposable
| Name | Return Type | Description |
|---|---|---|
| AddModule(ModuleSettings) | The new module. | Adds a MacroModule to the application or document. |
| Contains(MacroModule) | bool | Indicates the given module is a member of this collection. |
| Dispose() | None | Releases all resources used by the |
| GetApplicationMacroSecurityOptions(Application) | ApplicationMacroOptions | Gets the application macro security options. |
| GetBasicIEnumerator() | IEnumerator | Returns an enumerator that iterates through a collection. |
| GetDocumentMacroSecurityOptions(Application) | DocumentMacroOptions | Gets the document macro security options. |
| GetEnumerator() | IEnumerator<MacroModule> | Returns an enumerator that iterates through a collection. |
| GetMacroManagerIterator() | MacroManagerIterator | Returns a Macro manager iterator that iterates through the collection. |
| GetMacroManager(Application) | MacroManager | Gets the Macro manager from the application. |
| GetMacroManager(Document) | MacroManager | Gets the Macro manager from the document. |
| IsDocLvlMacro() | bool | Indicates current Macro is document level |
| RemoveModule(MacroModule) | None | Removes a MacroModule from the application or document. |
| SetApplicationMacroSecurityOptions(Application, ApplicationMacroOptions) | None | Sets the application macro security options. |
| SetDocumentMacroSecurityOptions(Application, DocumentMacroOptions) | None | Sets the document macro security options. |
| Name | Return Type | Description |
|---|---|---|
| Count | int | The count. |
| Folder | string | The modules folder. The path for document macros will not persist except while the document is loaded in this session. |
| IsEnabled | bool | Indicates if macros stored in this MacroManager are enabled. |
| IsValidObject | bool | Specifies whether the .NET object represents a valid Revit entity. |
| MacroLevel | MacroLevel | The Macro level. |