Learn to program the Revit API by Boost Your BIM
- 6.5 hours on-demand video
- 3 articles
- 58 downloadable resources
- Full lifetime access
- Access on mobile and TV
- Certificate of Completion
Get your team access to Udemy's top 3,000+ courses anytime, anywhere.Try Udemy for Business
- In this course, you will learn how to write Revit API code in the C# language to perform a wide variety of tasks.
This course is for people who want to do more with the Autodesk Revit building information modeling software.
You can do a lot of great things with Revit as it ships "out of the box" from Autodesk, but there are still many tasks that are repetitive, boring, and error-prone. There are also many situations where you can be more effective and productive if you can add additional functionality to Revit.
This course will cover a wide range of topics in the Revit API. Each topic will be taught by walking through a set of C# code samples that progress from the basics to more advanced concepts.
More content will be added to this new course in the upcoming weeks. If you see a topic that you like added, just let me know and I will try to make that addition.
- Revit users who want to do more with Revit.
- No programming experience is needed. Novice programmers may find it helpful to supplement this course with some of the many free resources online.
Find the TEMP folder and the My Documents folder, combine folder and file names, and find all files in a folder.
How to write Revit data to an Excel file in a Revit API external command.
Includes using the Process.Start command to open a file in its default application.
You can get the EPPlus component for Excel read/write with NuGet (https://www.nuget.org/)
"An essential tool for any modern development platform is a mechanism through which developers can create, share, and consume useful code. Often such code is bundled into "packages" that contain compiled code (as DLLs) along with other content needed in the projects that consume these packages.
For .NET (including .NET Core), the Microsoft-supported mechanism for sharing code is NuGet, which defines how packages for .NET are created, hosted, and consumed, and provides the tools for each of those roles."
In Visual Studio go to Tools - NuGet Package Manager - Manage NuGet Packages for Solution - then browse for EPPlus. Select EPPlus by Jan Kallman
Or you can download the DLL from https://drive.google.com/file/d/1q1ZnRpK4XLdstVzbK3oUc0Qf61-3kLIA/view?usp=sharing or attached to this lecture. If you do that, be sure to unblock the DLL (right click on it in Windows Explorer, select Properties, Unblock) after downloading it.