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
➤
Macros
➤
Macros
■
Tools
➤
Macros
➤
Launch VSTA IDE
■
Macro Manager, a user interface launched by the Tools
➤
Macros
➤
Macros menu option. Macro
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
➤
Macros
➤
Launch VSTA IDE
■
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
Summary of Contents for 24000-000000-9860 - Revit Architecture - PC
Page 1: ...Revit Architecture 2009 User s Guide April 2008 240A1 050000 PM02A ...
Page 4: ......
Page 56: ...18 ...
Page 116: ...78 Chapter 3 Revit Essentials ...
Page 172: ...134 Chapter 4 ProjectViews ...
Page 178: ...Schedule with Grid Lines Schedule with Grid Lines and an Outline 140 Chapter 4 ProjectViews ...
Page 554: ...516 ...
Page 739: ...Curtain wall Curtain Grid Curtain Walls Curtain Grids and Mullions 701 ...
Page 1004: ...966 ...
Page 1136: ...1098 ...
Page 1226: ...1188 ...
Page 1250: ...1212 ...
Page 1276: ...1238 Chapter 20 Design Options ...
Page 1310: ...1272 ...
Page 1366: ...1328 ...
Page 1406: ...1368 ...