Use these four code samples to explore the Macro Manager tools and better understand how they interact with the Revit macro IDE.
Topics in this section
C# Application-Level Macro Code Example
In the example, the Revit.DB.Geometry.XYZ class is used to define a position (with X, Y, Z coordinates) for a text note that the macro will add the text box to the active view of the active document.
C# Document-Level Macro Code Example
The code for successfully built document-level macros are stored in the RVT file after you save the RVT file. The project files are removed from the temporary location when you exit Revit.