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:
- ReadMe.txt
- Slide deck
- Recording
- Code Samples
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:
- New feature overview and DevDays Online recording
- Add-in integration features in depth, Idling and external events
- Analysis, simulation, MEP and Structure
- New SDK samples
- More News
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:
- Recording – recording of the webcast and the Q&A collection.
Click on the WMV file to view the recording.
Answers to questions asked using the Q&A Console can be found in document file.
- Webcast – powerpoint slides used in the recording.
- Code Samples – code samples used for the demo. Please see below for notes on each sample.
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
- HelloWorldCmd – a bare-bones example of an external command.
- HelloWorldApp – a bare-bones example of an external application.
- CommandData – parameters of the execute method of the IExternalCommand interface.
- SelectedElements – method to retrieve selected elements.
- FilteredElements – use of FilteredElementCollector to identify all Walls that exceed a certain length.
- AllElements – use of FilteredElementCollector to retrieve all elements in the model.
- ElementIdentification – method to identify the type of an element.
- AllWalls – use of FilteredElementCollector to retrieve all walls in the model.
- AllDoors – use of FilteredElementCollector to retrieve all doors in the model.
- ElementCreation – use of the Creation namespace and the static creation method to create a wall.
- ElementModification – use of ElementTransformUtils to rotate a wall.
- BuiltInParameters – method to retrieve built-in parameters.
- SharedParameter – creation of a shared parameter and binding it to the Doors category.