Custom Extension with Multiple Tabs - Can you have a custom order for the tabs?

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.

Is this possible?

Thanks!

1 Like

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.

5 Likes

you can also give this a shot try CTRL+Click and drag the tab directly in Revit.

image

image

3 Likes

No way! I have learned something new, there. Thanks

would this work with tab names with brackets?

such as the following
pyHTX.extension

>HTX[CORE].tab

>HTX[HVAC].tab

>HTX[MEP].tab

> bundle.yaml

inside the bundle.yaml i have

layout:

-HTX[MEP]

-HTX[HVAC]

-HTX[CORE]

i tried this also but no dice
layout:

-”HTX[MEP]”

-”HTX[HVAC]”

-”HTX[CORE]”

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?