This must have been the most frustrating 20 min of my life. It was when I realized that RevitLookup when downloaded does not come compiled into a DLL that we can just load into our Revit. Instead it comes as a RevitLookup.csproj that needs to be compiled using Sharp Develop for example. Below are clearly explained steps that one needs to take to get this to work…and work you have to make it since RevitLookup is ESSENTIAL to doing anything with Revit API.
RevitLookup 2014 Download
- Install Revit 2014 SDK from here.
- Install RevitAddinManager from SDK\Add-In Manager\ folder
- Open SharpDevelop. If you don’t have it installed download it here.
- Drag and drop RevitLookup.csproj to the Projects Panel on the left. You can also simply go to Open Project/Solution:
5. Add references to your RevitAPI and RevitAPIUI that can be found in the main Revit folder at: C:\Program Files\Autodesk\Revit 2014
Right click on References:
Go to .NET Assembly Browser and click on the Browse… button.
Go to the C:\Program Files\Autodesk\Revit 2014 location and add both of the RevitAPI files.
6. Now you are ready to compile it. Hit Run Compiled Exec button and watch for errors. If it says that it was Build Successfully then you are good to go. The DLL will be saved in the folder that RevitLookup.csproj was taken from. If you get bunch of warnings with it, its OK as long as its compiled successfully.
7. Open Revit and any project.
8. Go to External Tools>Add-in Manager (automatic)
9. Load the compiled RevitLookup.dll and then use the Save to Add-ins folder option.
10. Restart Revit and you should be good to go.