An individual Autodesk Revit Macro which can be executed.
Inheritance Hierarchy
System.ObjectAutodesk.Revit.DB.Macros.Macro
Namespace: Autodesk.Revit.DB.Macros
Assembly: RevitAPIMacros (in RevitAPIMacros.dll) Version: 26.4.0.0 (26.4.0.0)
Syntax
C#
public class Macro : IDisposable
The Macro type exposes the following members.
Properties
| Name | Description | |
|---|---|---|
| IsValidObject | Specifies whether the .NET object represents a valid Revit entity. | |
| MacroModule | The Macro module. | |
| Name | The macro name. |
Methods
| Name | Description | |
|---|---|---|
| Dispose | Releases all resources used by the Macro | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
| Execute | Executes the macro. | |
| GetHashCode | Serves as the default hash function. (Inherited from Object) | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| ToString | Returns a string that represents the current object. (Inherited from Object) |
