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.
Compiling the code
- [Instructor] We've now created an Add-in file to tell Revit how to load our new plugin. All we need to do next is compile the code and run the .dll, or dynamic link library file that results. A DLL file is basically all of our code compiled into a single file, containing code and data that can be run by other applications. In our case, Revit. So in this video, we'll compile our code and set it to copy to the required location so we can execute and debug our command. When we build our solution, it will result in a DLL file being output. So let's try this and see what happens. In the Build menu at the top, let's select Build Solution. Great. So the output window at the bottom of the screen displays the output from the build. And, in this case, it was a success. As it says Build 1 succeeded. If there was anything wrong with our code, Visual Studio would be sure to tell us about it in this window. And the output would fail. So it's important to check this log if anything goes wrong. You…
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
-
-
-
-
-
-