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 in 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.
Q: I was expecting to see my newly created macro listed in Macro Manager's categorized list, but it is not
there. Why?
A: You must successfully build the macro project in the Revit VSTA IDE (use the Build menu) before your
new macros will appear in Macro Manager.
Q: Do I need to add RevitAPI.dll as a reference when writing a new macro?
A: No. You do not need to reference Revit DLL files because this step was completed for you. A Revit VSTA
macro project uses Revit.Proxy.dll as a required reference. Revit macros will fail if you delete this reference
in the IDE:
1364 | Chapter 24 Creating Macros with Revit VSTA
Need help?
Do you have a question about the 24000-000000-9860 - Revit Architecture - PC and is the answer not in the manual?
Questions and answers