Restore RevitAPI.dll and RevitAPIUI.dll

RevitAPI.dll and RevitAPIUI.dll are required references for the interaction between the Macro Manager and the Revit macro IDE. If they are inadvertently removed from a module, use this procedure to restore them.

  1. Select the module in the Macro Manager.
  2. Click Edit.
  3. In the Project Explorer of IDE, right-click on the references section, and select Add Reference.
  4. In the Add Reference dialog, click the Browse tab.
  5. Navigate to \Revit <release>\Program.
  6. Select RevitAPI.dll and RevitAPIUI.dll.
  7. Click OK.
  8. The references are restored and the macro will build, debug, and run as needed.