
Name the folder. In this example, we call it Samples. Then right-click on the Samples folder entry, and click
Add
➤
New Folder again to add a secondary folder, such as Rooms.
Here is the resulting Project Explorer screen:
Outside of the IDE, use Windows Explorer to navigate to the Revit installation folders, and find the VstaMacros
folder. Notice that the corresponding
\Samples\Rooms
subfolders have been created in this location.
Copy Your Macro to File System Folder
Still outside of the Revit VSTA IDE, copy your macro's files to the subfolder you created.
NOTE
If your macro uses a ResX file, copy it too.
Add Existing Files to Macro Project in IDE
Return to the Revit VSTA IDE. In the Project Explorer (to continue this example), right-click on the folder
you created for your macro, and select Add
➤
Existing Item from the menu. For example:
In the resulting IDE dialog, browse to the corresponding subfolder on the file system (such as the Revit SDK
VSTA Sample directory), under your Revit installation folder, select all the files that comprise the macro,
and click Add.
In this example, the refreshed IDE Project Explorer for
AppCSharp
contains:
Integrating Macros into Revit VSTA | 1441
Содержание 256B1-05A761-1301 - AutoCAD Revit Structure Suite 2010
Страница 1: ...Revit Architecture 2010 User s Guide March 2009 ...
Страница 4: ......
Страница 42: ...xlii ...
Страница 84: ...42 ...
Страница 126: ...84 ...
Страница 166: ...124 ...
Страница 229: ...Schedule Field Formatting Calculating Totals Specifying Schedule Properties 187 ...
Страница 230: ...Schedule with Grid Lines Schedule with Grid Lines and an Outline 188 Chapter 5 Project Views ...
Страница 304: ...262 ...
Страница 427: ...Defining the first scale vector Defining the second scale vector Resizing Graphically 385 ...
Страница 454: ...Before painting applying material to stairs 412 Chapter 8 Editing Elements ...
Страница 456: ...414 ...
Страница 486: ...444 ...
Страница 674: ...632 ...
Страница 802: ... Attachment Style Cut Column Attachment Justification Intersect Column Midline 760 Chapter 13 Architectural Design ...
Страница 809: ...Curtain wall Curtain Grid Curtain Walls Curtain Grids and Mullions 767 ...
Страница 994: ...952 ...
Страница 1016: ...974 ...
Страница 1204: ...1162 ...
Страница 1290: ...1248 ...
Страница 1318: ...1276 ...
Страница 1372: ...1330 ...
Страница 1382: ...1340 ...
Страница 1462: ...1420 ...
Страница 1492: ...1450 ...