Skip to content

Macro

Public 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: 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

The Macro module.


Public Property

The macro name.


Methods

Name

Description


Public Method

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

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)