Application: New Macro
Revit Platform: All
Revit Version: 2025.0
First Released For: 2025.0
Programming Language: C#
Skill Level: Beginning
Category: Macros
Type: ExternalCommand

Subject: Generate a new UI Macro that includes basic codes to help how to use Macro API.
Summary: 
This sample demonstrates how to generate a new Macro that includes basic codes. It also demonstrates how to build Macro and how to get excute Macro by MacroManager. 

Classes: 
Autodesk.Revit.DB.Macros.MacroModule.
Autodesk.Revit.UI.Macros.UIMacroManager.
Autodesk.Revit.DB.Macros. ModuleSettings.
Autodesk.Revit.DB.Macros. Macro.

Project Files:
NewMacro.cs
It contains one class:
-	The class Command which implements interface IExternalCommand, it is the entry of this external command.
ModuleMaker.cs
It contains one class:
-	The class ModuleMaker Implements the Revit Macro interface IModuleMaker.
Description: 
This sample demonstrates the following functionalities:
-	Create a new  Macro by defualt code.
-    Excute this Macro. 

Instructions:
A.	Use case “New Macro”:
1)	Copy ” NewMacro” dir to addin folder.
2)	Run this external command.
3)	It will show a “Hello World” Dialog.GenerateD by Macro.