I have a custom extension with multiple tabs. I’d like to set an order to the tabs without relying on renaming the tab folders - i.e. I’d rather not have the tabs labeled 1. 2. 3.
I’ve run across something saying I need a title attribute in the bundle.yaml file under the tab folder, but that doesn’t seem to do anything.
It’s possible! (If all tabs is in the same .extension at least)
Place a bundle.yaml file in the .extension folder:
layout:
- Tab3
- Tab1
- Tab2
This will sort the tabs in the order you want.
I think you cannot control the pyRevit tab however (if it’s “deployed”), it will be placed as the last tab.
so don’t know if this is a fluke or not. as i was duplicated my .extension to test with simpler naming, it would work when it was first loaded into revit, the order I chose in the bundle.yaml was exactly what was in Revit. i then changed the order, close down revit, re-opened, but the order did not update. i tested this a few more times.
For me at least, the tab ordering only ever successfully applied if it was a brand new .extension that has never been loaded into revit. once it had been loaded. the bundle.yaml updated order was no longer taking effect.
Is there some data/cache being saved somewhere that needs to be deleted?