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.
Accessing the application
- When accessing Revit via the API, we can do so through the application, which is essentially the Revit session that we're working in, or through the document, which represents a Revit project file that we're working in. This is done through four different objects: the application, the UIApplication, the document, and the UIDocument. An application object provides access to application-wide settings such as project location settings, language, and application events. We'll learn more about this later on. The UIApplication object provides access to the interface or the ribbon and UI properties. We can use this to add custom ribbon items for example, which we'll also learn about later on in the course. The document object refers to the Revit project file that we're working in, so it provides access to all the elements, views and data within a model. We'll use this throughout the course. Finally the UI document provides access to the project-level user interface methods and properties…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
The Revit API2m 18s
-
(Locked)
Viewing the Revit API3m 33s
-
(Locked)
Setting up Visual Studio4m 34s
-
(Locked)
Adding the API4m 48s
-
(Locked)
The IExternalCommand3m 10s
-
(Locked)
Creating a command4m 16s
-
(Locked)
Accessing the application2m 48s
-
(Locked)
Selecting elements4m 58s
-
(Locked)
Registering add-ins5m 38s
-
(Locked)
Compiling the code5m 17s
-
(Locked)
Debugging4m 49s
-
-
-
-
-
-