Revit 2018 API - Undocumented Changes - Have you found any?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi Everybody,
Each year I upgrade my codebase for use with the new version of Revit. Each year, I rid my code of deprecated and/or obsolete function warnings/errors.
Each year I seem to find an undocumented change in the way the Revit API works.
'The Factory', can we *please* have a more detailed and complete list of changes? Can you add this change to the documentation, please?
My 'find' this year is a change in the way PromptForFamilyInstancePlacement works.
This function used to just return focus to your function upon cancelling by the Reviteer. In Revit 2018, cancelling of this function by your Reviteers throws an Exceptions.OperationCanceledException [sic] exception.
Easily fixed, once discovered:
Try
docUi.PromptForFamilyInstancePlacement(familySymbol)
Catch ex As Exceptions.OperationCanceledException
'the user cancelled placement. This should only trigger in Revit 2018.
'do something if you like
End Try
This change even makes sense! It's a good idea!
It also fills me with dread. What else is going to throw an exception unexpectedly? What other changes are there?
(Yes, I know that this item is *vaguely* alluded to in the 'what's new' document, but it's not documented anywhere.)
Have you found any hidden 'treasures' that you want to share?
Cheers,
-Matt
_______________________________________________________________________________
Marking a post as a 'solution' helps the community. Giving a post 'Kudos' is as good as saying thanks. Why not do both?