Expect API Changes
It is very likely that the Revit API will change in subsequent product releases. This means that after installing
the next Revit release, you will need to edit and rebuild your macros to reflect the API changes.
Revit VSTA Components
To create macros, you must install Revit VSTA on top of your existing Revit installation. The Revit product
and Revit VSTA versions must be the same.
You can use the Revit VSTA macro features in all Revit products: Revit Architecture, Revit Structure, and
Revit MEP. However, a separate Revit VSTA install, described in this topic, is required for each Revit product
in which you want to run macros. In this topic, we refer to any of these products generically as "Revit"
without a further qualifier.
Once installed, Revit VSTA provides:
New items on the toolbar s Tools menu:
Tools
Tools
Macro Manager, a user interface launched by the Tools
Manager presents a list of macros you built previously that you can run, edit, or debug (StepInto). Macro
Manager also provides options to create new macros using different types of templates.
An Integrated Development Environment (IDE) built into the product, the Revit VSTA IDE. You can
launch it several ways:
Tools
From the Macro Manager, by selecting the New, Edit, or StepInto buttons
Full access to the Revit API.
Workflow Overview: Initial Steps with Macros
The following diagram illustrates the initial steps with Revit VSTA and macro development:
1340 | Chapter 24 Creating Macros with Revit VSTA
Macros
Macros
Macros
Launch VSTA IDE
Macros
Launch VSTA IDE
Macros
Macros menu option. Macro
Need help?
Do you have a question about the 24000-000000-9860 - Revit Architecture - PC and is the answer not in the manual?