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.
Debugging
- [Instructor] We have learned how to automatically compile our command, and copy the files into the required directory. We can also automatically launch Revit from within Visual Studio too and test our command. To do this, we need to run the solution in debug mode. This will allow us to test our command and investigate any bugs that it might contain. To test the command, we need to tell Visual Studio to run Revit once debug mode is started. To do this, go to the debug menu at the top, and then, properties at the bottom. And this is where we can add Revit. To do that, we need to tell Visual Studio what .exe file to run; that is Revit.exe. To add this, click the Start external program option, and then Browse. Navigate to where you have Revit installed. On my machine, this is in C:, Program Files, Autodesk, Revit 2019. And in here, we can find Revit.exe. Go ahead and click Open to add that in. So now we can test our command directly from Visual Studio. Let's try that by going up to the…
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
-
-
-
-
-
-