Macros are one of the easiest ways to Automate Revit. They let you get under the hood of your software and put it to work for you. Macros do not require any additional software other than Revit and are a great way for beginners to learn programming.
So what exactly is a macro? A macro is a user-created command that is coded using Revit’s API. Macros are run directly inside of Revit and are saved in the project file. Other applications, like MS Office, provide the ability to record macros directly from your actions on the screen. Unfortunately, Revit does not have this functionality. You must code your Revit macros directly.