Macro
An individual Autodesk Revit Macro which can be executed.
Inheritance Hierarchy
System.Object
Autodesk.Revit.DB.Macros.Macro
Namespace: Autodesk.Revit.DB.Macros
Assembly: RevitAPIMacros (in RevitAPIMacros.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public class Macro : IDisposable
The Macro type exposes the following members.
Properties
Name
Description
Public Property
IsValidObject
Specifies whether the .NET object represents a valid Revit entity.
Public Property
MacroModule
The Macro module.
Public Property
Name
The macro name.
Methods
Name
Description
Public Method
Dispose
Releases all resources used by the Macro
Public Method
Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object)
Public Method
Execute
Executes the macro.
Public Method
GetHashCode
Serves as the default hash function.
(Inherited from Object)
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)