Revit 2010 Web Update 2

The first web update of Revit 2010 (build 20090612_2115) was already released earlier this year. Now the web update 2 for Revit 2010 (build 20090914_1845) including new fixes and minor enhancements has been published and can be downloaded from the public Revit product pages:

The update is also available from the ADN Revit download page. Look there for the Autodesk Revit 2010 September/October update.

The update is accompanied by an updated SDK as well. Here is an overview of the material:

Product and Documentation

Since there are three different flavours of the update for Architecture, MEP and Structure, and each of these has its own 'what's new' documentation and is available both for 32 and 64 bit operating systems, the whole release adds up to this list of nine files:

The three separate 'update 2 list' documents discuss the enhancements made both to the product and API.

The only API enhancement listed for update 2 is improved stability when subscribing to a DocumentOpened event. We return to that issue below in the discussion of the updated SDK.

The Revit SDK

The Revit SDK has also been updated for the web update. Normally, the SDK is included in the product installation files. Its default location in the temporary installation folder on my machine is

This however is not valid for the updated SDK. To obtain that, you need to download it from the public Revit developer page. Look for Revit 2010 SDK (Update 2, Sept 15, 2009), a 82402 Kb EXE file. It is also available from the members-only Revit software download page on the ADN web site, where it is posted as Revit 2010 SDK Update Release 2.

The new API functionality is described in the file 'Revit Platform API Changes and Additions.doc', namely:

Changes to the Revit API since the initial release of Autodesk Revit 2010

Rename and replace a family parameter

The method

allows you to rename a Family parameter.

The overloaded methods

allow you to replace a Family parameter with a new shared parameter, or a shared parameter with a new Family parameter.

Extract GUID from a Parameter

The new properties

identify if a given parameter is a shared parameter, and if it is, extract its GUID.

The help file RevitAPI.chm file also reflects these changes.

Revit SDK Differences

I ran a file comparison to analyse the differences between the initial release of the Revit SDK and the updated one and found them to be virtually identical, except for three files:

The sample applications provided in the updates are also identical to the ones in the original release of the SDK with a very few minute modifications.

SDK Backward Compatibility

Question: I installed Revit 2010 together with the original SDK. When installing, the web update was automatically picked up, downloaded and installed as well.

My question is: would this updated SDK work with my Revit 2010 as such? Do I need to install anything on top of it, i.e. one of the web update 2 or subscription pack releases?

Answer: The web update 2 release is simply an update, so the accompanying SDK will work for both that and the initial release. There are a few new APIs that will work only on the update, but as long as you are not using those, it should be compatible between these versions. You need to ensure that the update has been installed before making calls to any of the new API methods.

See the 'Revit Platform API changes and Additions.doc' document for details of the new APIs for each SDK. This information is also provided in the RevitAPI.chm file in the 'What's New' topic.

DocumentOpened Event Stability

Question: I defined a DocumentOpened event handler and added it in my OnStartUp function:

application.DocumentOpened 
  += new EventHandler(
    application_DocumentOpened );

Once I do so, however, Revit crashes when I open a document with linked documents, even in an empty project, and even if the application_DocumentOpened function is empty too! Is this a known issue?

Answer: This issue is resolved by the improved stability of this API in the web update 2.