By Joe Ye
Revit 2014 was announced yesterday. The main product features can be access from this page
Here I share part of the new API features that was highly expected.
1. When the current view is the project browser, external commands can be started by users. Previously external command Ribbon buttons are gray out in this situation. And more than that, your external command can also detect which item is selected in the project browser.And your external command do specific task depending on which item is selected.
2. Developers can fully control the elements display in a specific view just like the users can control those elements display through the UI commands in Visibility/Graphics Overrides dialog.
3. Dockable dialog API comes. This API wish was highly expected by Revit developers. The docked pane can be hidden, show, and removed via API. For details, see DockablePane class in the RevitAPI.chm file.
4. Post Revit shipped command in your plug-ins is available now. Many developer wish to have this long time ago, now the dream comes true. This can enhance the plugins’s functionalities by calling existing powerful commands.
5. The API to copy elements between documents can be used now. It supports copy and paste of arbitrary element. That means you can store some standard views or details in a template model view, and copy them to new model documents via API. System types can also been copied to new model files. You can think more scenarios to use this API. For detail see ElementTransformUtils.CopyElements() method
6. Revit now supports APIs for joining, unjoining, querying join state, and changing join order of elements in a model through the JoinGeometryUtils class.
7. Another cool API feature is that developer can create Macros, and launch Macros commands, and manager Macros via Revit API. For example you can create a external command that can start a macro. and your users can click a button in Ribbon to start a macro.
Hope you are happy to see these APIs.Here just a small part of the new API features. Please explore all new features when the SDK is posted to Autodesk Developer Center.