From the course: Revit: Creating C# Plugins

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Adding the API

Adding the API

From the course: Revit: Creating C# Plugins

Start my 1-month free trial

Adding the API

- [Narrator] We now have our Revit plugin project set up within Visual Studio. Currently, we simply have a class which doesn't allow us to access the Revit API. First, we'll need to add the Revit API files to our project so that we can then access the different classes and types contained within it. To do that, go ahead and expand the references tab on the right in the solution explorer. This shows us all the references, or assemblies, available within our project. To add more, right click references, and select add reference. Here we can find all the standard, available assemblies to add to our project. As the Revit API files aren't standard, we'll need to add them by going to the browse button on the bottom right. The Revit API files are located in the install directory of Revit. So this may differ, depending on where you installed it and what Revit version you're using. I have mine saved in the default file path which is in C:program files, Autodesk, and then Revit 2019. This will…

Contents