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.

DBApplication and events

DBApplication and events

From the course: Revit: Creating C# Plugins

Start my 1-month free trial

DBApplication and events

- [Instructor] The last type of adding we can create using the Revit API is by utilizing the IexternalDB application interface. This type of application add-in does not access the user interface, but is used to assign to events in the Revit session. So in this video, let's create an application that assigns to any changes that occur to specific element types. So let's start by creating a new class, which will be our IexternalDB application. You can do that by right clicking the solution name, selecting add and new item. Then in the visual C# items, make sure you have class selected and then let's add in externalDB app. Now to turn this class into an IexternalDB application, let's inherit from IexternalDBapplication. Currently, that class is outside of the scope for our class, so let's click the light bulb, select using autodesk.revit.DB. It's throwing another error because we need to implement the on start up and on shut down methods. So clicking the light bulb again and let's select…

Contents