On the Macros dialog box, select your preferred macro level and the implementation language, C# or VB.NET.
When you click the New button, your selection determines the type of source code template generated by
Revit. The following table summarizes the options:
And then click New, it results in...
If you select this option...
Application-level macro project source in C#, opened in Revit
VSTA IDE
AppCSharp
Application-level macro project source in VB.NET, opened in
Revit VSTA IDE
AppVisualBasic
Document-level macro source project in C#, opened in Revit
VSTA IDE
DocCSharp
Document-level macro project source in VB.NET, opened in
Revit VSTA IDE
DocVisualBasic
Macro Project File Locations
When you work in the Revit VSTA IDE, you must save and build the macros successfully before they will
appear in the Macro Manager's categorized list. Before we look at an example of the initial code loaded into
the Revit VSTA IDE, let's discuss where macro project files reside on your computer.
On disk, Application-level macro projects are stored in a subfolder of the Revit installation directory. For
example:
C:\Program Files\Revit Architecture 2009\Program\VstaMacros\AppAddIns\defaultAddIns\...
Here is an example with Windows Explorer and the Application-level macro project's files created for a
VB.NET implementation.
Document-level macro projects are stored within an .rvt file. On disk, when the associated .rvt project opens,
any built and saved macro(s) are stored temporarily in:
C:\Program Files\Revit Architecture 2009\Program\VstaMacros\DocAddIns\defaultAddIns\...
However, these Document-level macro files are deleted from your local computer when their corresponding
Revit project document (.rvt) closes. The saved Document-level macros are stored in the .rvt file.
Using Macro Manager and the Revit VSTA IDE | 1345
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 ...