Having the ability to trigger an event when an item is selected would open up quite a few feature possibilities across a broad spectrum of Revit features. Many ideas I personally have for helpful add-ins are not possible without a selection event hook. For instance, selecting elements could allow external application controls to appear next to the element, selecting a certain combination of elements could allow functional interactions near their interaction planes such as selecting two roof systems generating miter conditions options, selecting text could show precise positioning controls or parse the text for formulas and links, selecting an element could pull up data from it's Schema to let the user know of it's additional capability, a manufactured product could generate a Ribbon Panel menu for that manufacturer, etc. Currently, the workaround is to use ApplicationIdlingEvent, which is very much not ideal and a performance concern. If we had the following events, a lot of interesting features could be made: Document.OnSelectionChangedEvent Document.OnSelectionClearedEvent Document.OnSelectionStartedEvent Element.OnSelectedEvent Element.OnDeselectedEvent Element.OnHoverEvent Element.OnDoubleClickEvent https://thebuildingcoder.typepad.com/blog/2015/03/element-selection-changed-event.html https://thebuildingcoder.typepad.com/blog/2010/09/selection-watcher-using-idling-event.html https://forums.autodesk.com/t5/revit-api-forum/howto-get-the-element-selection-of-current-document-within-an/td-p/5767592
Show More