
About Revit VSTA Installation
The Revit VSTA application is now installed with Revit Architecture by default. Also note that Revit uses
Microsoft .NET Framework version 3.5. Older applications compiled using .NET 2.0 will continue to function
unless otherwise affected by changes in the Revit 2010 API.
Experienced Revit VSTA users should refer to
Upgrading from Revit VSTA 2009
on page 1422 for important
upgrade information.
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.
Upgrading from Revit VSTA 2009
If you are upgrading from Revit VSTA 2009, some file management may be required to update and operate
macros correctly in Revit. Be sure to familiarize yourself with changes in the The Revit Software Development
Kit (SDK) and the following macros upgrade information.
Upgrading Document-Level Macros
1
Open the project containing embedded document-level macros. Once opened, the project has been
updated.
2
Click Manage tab
➤
Macros panel
➤
Macro Manager.
3
Click each Document-level tab to update.
4
When complete, click Close.
5
On the Quick Access toolbar, click
(Save).
6
Close the project.
No further steps are required unless the macro code needs to be manually edited.
Upgrading Application-Level Macros
1
Copy the directories in C:\Program Files\Revit Architecture
2009\Program\VSTAMacros\AppAddIns\defaultAddIns.
2
Paste the directories into C:\Program Files\Autodesk Revit Architecture
2010\Program\VSTAMacros\AppHookup.
3
Launch Revit
4
Click Manage tab
➤
Macros panel
➤
Macro Manager.
5
Click the Application tab.
6
When complete, click Close.
NOTE
In the event there are compatibility issues in the upgrade process, copies of the original project (for
document-level macros) and application macros are placed in My Documents\Revit Architecture 2010 VSTA and
appended with ~R. These files may be hidden depending on your Windows Explorer folder settings.
The code in projects may need to be manually modified in order to successfully build and run the macros
in Autodesk Revit Architecture 2010. Consult the SDK for the list of changes to the API in order to address
any version compatibility issues.
1422 | Chapter 26 Creating Macros with Revit VSTA
Summary of Contents for 256B1-05A761-1301 - AutoCAD Revit Structure Suite 2010
Page 1: ...Revit Architecture 2010 User s Guide March 2009 ...
Page 4: ......
Page 42: ...xlii ...
Page 84: ...42 ...
Page 126: ...84 ...
Page 166: ...124 ...
Page 229: ...Schedule Field Formatting Calculating Totals Specifying Schedule Properties 187 ...
Page 230: ...Schedule with Grid Lines Schedule with Grid Lines and an Outline 188 Chapter 5 Project Views ...
Page 304: ...262 ...
Page 427: ...Defining the first scale vector Defining the second scale vector Resizing Graphically 385 ...
Page 454: ...Before painting applying material to stairs 412 Chapter 8 Editing Elements ...
Page 456: ...414 ...
Page 486: ...444 ...
Page 674: ...632 ...
Page 809: ...Curtain wall Curtain Grid Curtain Walls Curtain Grids and Mullions 767 ...
Page 994: ...952 ...
Page 1016: ...974 ...
Page 1204: ...1162 ...
Page 1290: ...1248 ...
Page 1318: ...1276 ...
Page 1372: ...1330 ...
Page 1382: ...1340 ...
Page 1462: ...1420 ...
Page 1492: ...1450 ...