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
Содержание 24000-000000-9860 - Revit Architecture - PC
Страница 1: ...Revit Architecture 2009 User s Guide April 2008 240A1 050000 PM02A ...
Страница 4: ......
Страница 56: ...18 ...
Страница 116: ...78 Chapter 3 Revit Essentials ...
Страница 172: ...134 Chapter 4 ProjectViews ...
Страница 178: ...Schedule with Grid Lines Schedule with Grid Lines and an Outline 140 Chapter 4 ProjectViews ...
Страница 352: ...Defining the first scale vector Defining the second scale vector 314 Chapter 7 Editing Elements ...
Страница 554: ...516 ...
Страница 739: ...Curtain wall Curtain Grid Curtain Walls Curtain Grids and Mullions 701 ...
Страница 898: ...Pile caps with multiple piles Rectangular and triangular pile caps 860 Chapter 12 Working with Structural Components ...
Страница 1004: ...966 ...
Страница 1136: ...1098 ...
Страница 1226: ...1188 ...
Страница 1250: ...1212 ...
Страница 1276: ...1238 Chapter 20 Design Options ...
Страница 1310: ...1272 ...
Страница 1366: ...1328 ...
Страница 1406: ...1368 ...