
■
Some samples have resources that must be defined in the resources.resx file. GridCreation is one such
sample. If you migrate the SDK standard API sample for GridCreation to Revit VSTA, be sure to set the
resx
property.
■
Project build dependence is not supported within the Revit VSTA IDE. If you want to use other DLLs,
you must compile that dependent sample project outside the Revit VSTA IDE. For example, in the SDK
standard API samples, there are several samples related to Viewers, such as AnalyticalViewer and
RoomViewer, which depend on references to RevitViewer. In the SDK sample's solution, you can set the
project dependences as shown here:
However, we cannot set the project dependency due to a limitation in Revit VSTA. We cannot migrate
the RevitViewer sample to VSTA. Therefore, you need to compile RevitViewer as an independent SDK
sample, and then add its DLL as a reference in the Revit VSTA project:
■
When you migrate SDK standard API samples to Revit VSTA, do not copy any Solution files (*.sln*) or
existing project files (*.csproj or *.vbproj).
■
Toolbar-related samples are unavailable in Revit VSTA.
Revit Macros FAQ
Quick Reference
This section answers frequently asked questions about Revit macros.
Answer
Question
You must successfully build the macro
project in the Revit VSTA IDE (use the Build
I was expecting to see my newly created
macro listed in the Macro Manager's cat-
egorized list, but it is not there. Why?
menu), before your new macros will ap-
pear in the Macro Manager.
No. You do not need to reference Revit
DLL files because this step was completed
Do I need to add RevitAPI.dll as a reference
when writing a new macro?
Revit Macros FAQ | 1445
Содержание 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 ...