Revit Macros Faq - Autodesk 256B1-05A761-1301 - AutoCAD Revit Structure Suite 2010 User Manual

User guide
Table of Contents

Advertisement

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
property.
resx
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.
Question
I was expecting to see my newly created
macro listed in the Macro Manager's cat-
egorized list, but it is not there. Why?
Do I need to add RevitAPI.dll as a reference
when writing a new macro?
Answer
You must successfully build the macro
project in the Revit VSTA IDE (use the Build
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
Revit Macros FAQ | 1445

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the 256B1-05A761-1301 - AutoCAD Revit Structure Suite 2010 and is the answer not in the manual?

Questions and answers

Table of Contents