New Revit 2015 SDK Samples

Rather belatedly, I went through my usual analysis of the Revit SDK to determine the new samples added to the Revit 2015 SDK.

While I was at it, I also migrated the DevDays samples for Revit 2015 UR1,
since some new SDK functionality is not yet covered by new SDK samples, and the ones posted with the

DevDays online recording
were
still compiled for one of the early pre-release versions of Revit.

New Samples in the Revit 2015 SDK

To cut a long story short, the initial release of the Revit 2015 SDK includes four new samples demonstrating part of the most important

new Revit 2015 API functionality
:

  • ExternalResourceServer
    • ExternalResourceDBServer – demonstrates a concrete class derived from the IExternalResourceServer interface. The class simulates the provision of keynote data and Revit link models from files in a remote storage location, as well as keynote data created from a database.
    • ExternalResourceUIServer – provides messages and other UI in support of the SampleExternalResourceServer in the ExternalResourceDBServer project.
  • FamilyParametersOrder – demonstrates how to define and sort family parameter order.
  • GetSetDefaultTypes – demonstrates how to get and set default family and element types.
  • Structural Analysis SDK/Examples/ASCE-7-10 – new RST sample.

Furthermore, the trusty old RevitLookup sample, an important database exploration and debugging tool in its own right, was removed from the Revit SDK and now lives all on its own in its cosy
RevitLookup GitHub repository.

DevDays Online Samples Updated for Revit 2015 UR1

The new SDK samples listed above do not cover all the new Revit 2015 API features.

For instance, nothing to illustrate the important new DirectShape functionality is included above.

I therefore took another look at the samples that we used to demonstrate some of the new functionality at the DevDays Online conferences and posted with the

DevDays online recording
,
and migrated them to the current Revit 2015 UR1 release.

Here are the two updated archive files with and without the sample models included:


Comments

2 responses to “New Revit 2015 SDK Samples”

  1. Hi Jeremy,
    first thanks very much for your blog. It helps me all the time when I have a problem with the Revit API.
    I was very excited about the new possibilities to set default family types. I created a small plug in which loads families or family types, sets a selected type as the default type and lets the user add family instances with a post command.
    It works very well except with detail components. I checked the GetSetDefaultTypes API example and it seems that there is the same problem. Is there a Bug in the Revit API? Can you provide some help with this topic?
    Thank you very much!

  2. hi
    how can i download Revit Add-ins External Tools ?
    thank you very much

Leave a Reply to Heinz StadlerCancel reply

Discover more from Autodesk Developer Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading