With pushbuttons it is possible to change the title through the bundle.yaml file.
Is it possible to do the same thing with panels. (so the title doesn’t have to be the same as the folder name)
With pushbuttons it is possible to change the title through the bundle.yaml file.
Is it possible to do the same thing with panels. (so the title doesn’t have to be the same as the folder name)
I think what @PieterL_TM needs is:
The bare minimum you need is:
title: YourNewName
and if translations are required:
title:
fr_fr: Mon Nouveau Nom
en_us: My New Name
and if you need to reorder the layout of button, just use the layout entry and list the folder names in the right order as shown by @andreasd811
Tagging along on this one.
I have the same problem with both .panel and .pulldown bundles that I want to rename.
Spesifically for the .pulldown I want to add a “\n” to dysplay the button text on two lines.
It seems to me that using “title:” is not supported for those bundles?
Same principle:
Is it possible in the Revit UI?
No,
Then this is the reason why it does not work in the code.
User error! Turns out I had an error in my yaml file for the .pulldown. Using “title:” works for .pulldown!
I knew other add-ins (made in C#) have break lines (two text lines) for the pulldown title, so could not understand why I could not get it to work until I saw that the “-” under layout was red. There was a space and not a tab before of it.
I understand that two lines in the Ribbon Panel title is probably not allowed by API. And it seems to me that using “title:” in a .panel button is not supported?
try
title: "First line\nSecond line"
Tested in both .pulldown and .panel bundles:
.pulldown = Working
.panel = Not Working
That’s what I expected, so all good!