Revit 2013 API Webcast Recording

The recording of the Revit 2013 API webcast that we held on May 17 is now available from the ADN DevTech Webcast Recordings Archive, entering "Revit API" as the course topic, or directly from here.

The 34 MB zip file includes:

The webcast addresses two main areas: an introduction to Revit programming for beginners, including a quick walkthrough of basic concepts, and a discussion of some of the new functionality provided by the Revit 2013 API, which will be of interest to both beginners and experienced developers. The two parts are roughly equal in length.

The new API topics discussed have been selected to avoid too much overlap with the DevDays Online presentation on What's New in Revit 2013, from which a recording is also available, so these two complement each other and should do quite a good job together to cover all important aspects of the Revit 2013 API. This is the agenda of the second half of the webcast:

For your convenience, here is the content of the readme file describing the sample code provided:

Webcast on Revit 2013 API

This folder includes the following materials:

About Code Samples Folder

This folder includes samples demonstrated in the webcast presentation. Some samples that were not demonstrated during the webcast but used in the presentation slides are also included.

The sample code is available in both C# and VB in the directories SourceCS and SourceVB, respectively. Both of these contain a Visual Studio solution file WebcastDemo.sln to compile and run it.

A sample Revit model Demo.rvt containing a few simple elements that can be used to test the functionality demonstrated by the sample code is also included. If you prefer, you may use any other Revit file.

Functionality Demonstrated by the Solutions

  1. HelloWorldCmd – a bare-bones example of an external command.
  2. HelloWorldApp – a bare-bones example of an external application.
  3. CommandData – parameters of the execute method of the IExternalCommand interface.
  4. SelectedElements – method to retrieve selected elements.
  5. FilteredElements – use of FilteredElementCollector to identify all Walls that exceed a certain length.
  6. AllElements – use of FilteredElementCollector to retrieve all elements in the model.
  7. ElementIdentification – method to identify the type of an element.
  8. AllWalls – use of FilteredElementCollector to retrieve all walls in the model.
  9. AllDoors – use of FilteredElementCollector to retrieve all doors in the model.
  10. ElementCreation – use of the Creation namespace and the static creation method to create a wall.
  11. ElementModification – use of ElementTransformUtils to rotate a wall.
  12. BuiltInParameters – method to retrieve built-in parameters.
  13. SharedParameter – creation of a shared parameter and binding it to the Doors category.