These macros have been preconfigured to run in Revit, assuming that you have already installed the Revit
VSTA add-in. In this example, the ProjectInfo sample prompts you to enter information about the project,
as in the following dialog box.
In Macro Manager, you can also select any of the VSTA sample macros and click Edit to see the code created
to run that sample.
If you need to integrate an Application-level sample macro into the IDE, or learn how to add new types of
references or properties for your macros, see the next section.
Integrating Macros into Revit VSTA
Let's walk through the steps to integrate a macro into a Revit VSTA project. You can skip this section if the
Document-level samples described in the section
Using the Revit VSTA Samples from SDK
on page 1354 meet
your needs.
This section explains where to create folders in the IDE projects that correspond to resources on the file
system, how to add required references, and how to define properties. Those steps were done for you in the
macros that were built into Revit_VSTA_Samples.rvt, which is provided on the SDK.
Integrating Macros into Revit VSTA | 1355
Need help?
Do you have a question about the 24000-000000-9860 - Revit Architecture - PC and is the answer not in the manual?