In Revit is possible to use TAB key to select different nested elements. The Revit animation shows the hover and select behavior, note the status bar (bottom left) showing the names.
When the model is translated into SVF, it is organized using the Model Tree, so it is possible to mimic some of that behavior. There fore a few steps:
- Add an event listener to track keys, in this case TAB
- Get the current selection (can be 1 or more)
- Use the model tree to find the parents
- Select them
The above should work until we reach the root node. And it should keep track of the first selected element in order to cycle back to the initial selection.
You can try it using the Forge Extensions library. Source code is also available.