Share

Macro Class

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: 26.1.0.0 (26.1.0.34)

Syntax

C#

public class Macro : IDisposable

The Macro type exposes the following members.

Properties

 NameDescription
Public propertyIsValidObject Specifies whether the .NET object represents a valid Revit entity.
Public propertyMacroModule The Macro module.
Public propertyName The macro name.

Methods

 NameDescription
Public methodDisposeReleases all resources used by the Macro
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodExecute Executes the macro.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)

See Also

Reference

Was this information helpful?