Revit 2015 R2 and the Read-Write Workset API

Finally, the Revit API provides a complete Workset API including creation and modification capabilities.

The one snag is that it is currently limited to the subscription update release Revit 2015 R2.

This issue was discussed a while back on the Revit API discussion forum, in the threads on R2 versus UR4 and worksets; I searched and re-searched for them frequently enough now to finally decide to promote the gist to a main blog post topic.

Read-Write Workset API

The Workset API was a very long time coming.

Until now, it was still read-only. Now we can also create a workset, rename and activate:

Making use of the new workset creation method in VB might look like this:

  Private Sub CreateWorkset(name As String)
    Using t As New Transaction(m_Doc)
      t.Start("Create Workset")
      Workset.Create(m_Doc, name)
      t.Commit()
    End Using
  End Sub

Revit 2015 R2

Revit 2015 R2 is a file format compatible subscription update release and was made available towards the end of 2014.

The other efficiency and productivity enhancements it provides are user features including improvements to rendering, enhancements to documentation and schedules, performance improvements, etc.:

Exceptionally, this subscription release includes the small API enhancement noted above. Therefore, the Revit Developer Centre provides a separate SDK for it as well.

RevitLookup and Other GitHub Repository Updates

I am gradually working my way through the various Revit API GitHub repositories and updating the sample code copyright years from 2014 to 2015 in readiness for more significant updates later this year.

Yesterday, I updated RevitLookup, the interactive Revit BIM database exploration tool to view and navigate element properties and relationships, and AdnRme, the ADN sample add-in for Revit MEP HVAC and electrical.