Learn to program the Revit API by Boost Your BIM

Learn how to customize, automate, and improve Autodesk Revit software.
4.1 (70 ratings) Instead of using a simple lifetime average, Udemy calculates a
course's star rating by considering a number of different factors
such as the number of ratings, the age of ratings, and the
likelihood of fraudulent ratings.
483 students enrolled
Instructed by Harry Mattison Design / Design Tools
$195
Take This Course
  • Lectures 42
  • Length 5.5 hours
  • Skill Level All Levels
  • Languages English
  • Includes Lifetime access
    30 day money back guarantee!
    Available on iOS and Android
    Certificate of Completion
Wishlisted Wishlist

How taking a course works

Discover

Find online courses made by experts from around the world.

Learn

Take your courses with you and learn anywhere, anytime.

Master

Learn and practice real-world skills and achieve your goals.

About This Course

Published 8/2013 English

Course Description

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.

What are the requirements?

  • Course is taught using Revit Architecture 2014 and the vast majority of material also applies to Revit 2013, Revit MEP, and Revit Structure.

What am I going to get from this course?

  • In this course, you will learn how to write Revit API code in the C# language to perform a wide variety of tasks.

What is the target audience?

  • 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.

What you get with this course?

Not for you? No problem.
30 day money back guarantee.

Forever yours.
Lifetime access.

Learn on the go.
Desktop, iOS and Android.

Get rewarded.
Certificate of completion.

Curriculum

Section 1: Revit API Basics
Introduction: A Simple Macro
Preview
05:28
06:56

Prompt the user to select an element and retrieve data from that element.

The "Exception Handling" lecture is recommended to learn how to handle the user pushing the ESC key during a selection prompt.

Prompt user to select edge or face & get edge/face info
07:18
06:47

Get the elements selected in the Revit UI and use the API to set which elements are selected.

14:59

Find elements in a Revit model using filters by Class (such as Wall or FamilyInstance) and Category (such as Door and Window)

15:01

Find elements that are visible in a specific view.

Find elements whose bounding box is inside a 3D space defined by two mouse-clicks

06:37

Use LINQ (Language-Integrated Query) syntax to develop more sophisticated queries of elements in the Revit model

06:41

Create an external command using Visual Studio Express

08:55

Create family types, family parameters, and set parameter values

Section 2: .NET, C# and general programming basics
14:09

Revit macros to read and write text files

07:45

Find the TEMP folder and the My Documents folder, combine folder and file names, and find all files in a folder.

12:31

Read data from Excel into a Revit API external command

06:45

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.

07:35

How to handle exceptions (errors) that occur while running your Revit API code.

13:57

How to write and reuse functions that make your code easier to update and maintain with fewer bugs.

02:33

What it means when a member of the Revit API is marked "obsolete"

14:32

Create a Windows Form dialog to allow the user to enter information that will be used by an API command

Section 3: Element Operations
06:53

How to modify the Revit Document and delete an element

11:57

Create a text note

09:01

How to check the type of a parameter (string, integer, double, element id) and set its value

04:48

Get data from a Revit element using Built In Parameters

Create wall
04:05
07:53

How to create a Furniture family instance

Create Family Instance (Door)
06:58
Element Rotation
05:10
Get Workset of an element
05:54
Section 4: Element Geometry
12:43

Find the point or curve that defines the location of an element

09:14

Find area of faces of walls, floors, roofs, and other host objects.

Watch "Code Reuse" lecture to learn how to improve the code shown here.

Section 5: Debugging Revit API Code
05:46

Step Into a Macro to debug your macro code. Set breakpoints and create watches in SharpDevelop to see what is happening as your code executes.

Debugging external commands in Visual Studio
06:27
Section 6: Intermediate / Advanced topics
12:14

How to prompt the user for a selection and only allow selection of specific categories

11:30

How to register an event to automatically run Revit API code when specific actions occur in the Revit session.

The DocumentSaving event is demonstrated in this lecture to show how to create and update a log file with the time of save and the user's name.

10:33

Create a ribbon tab, panels, and buttons with an external application

Write comments to the journal file
03:01
13:19

Store data in Revit elements that is accessible only via the Revit API

08:21

How to "see" in the Revit model by shooting imaginary arrows and finding out what they hit

07:41

How your API code can automatically react to user changes in the Revit model

Section 7: Source Code from BoostYourBIM blog posts
1 page

See this in action at http://youtu.be/dY9g4MATRG0

1 page

See this in action at http://youtu.be/VKT0_wBAdiY

Section 8: Responses to Questions
Article

This "lecture" will contain code samples to answer questions. This is being done because code formatting does not display properly in the Udemy Q&A interface.

Section 9: Boost Your BIM "Sneak Peek" Installers
File Version Check
Article
Topo From Lines
Article

Students Who Viewed This Course Also Viewed

  • Loading
  • Loading
  • Loading

Instructor Biography

Harry Mattison, Founder of Boost Your BIM

Harry is the founder of Boost Your BIM, a software development and training company that collaborates with AEC firms to make Revit better. Boost Your BIM customers benefit from custom-built API applications that extend Revit’s capabilities and enable them to complete their work faster and with better results.

Boost Your BIM has built applications to automate routine tasks, enforce company standards, extract model data, use the Revit UI more efficiently, and solve other problems that would be difficult or impossible to do with Revit in its “out of the box” state.

Harry was an employee of Revit Technology Corporation and Autodesk from 1998 to 2012 and spent four of those years developing and testing new Revit APIs in areas such as the Family Editor, Massing, Analysis Visualization, Dynamic Model Update, and Views & Schedules.

Ready to start learning?
Take This Course