Panel / Button active state without an active open file?

Hi All,

I’m busy with a custom extension and ran into an issue which I’m not sure is possible, hence me reaching out.

I require a button to be active on the custom toolbar without having an active / open file. Currently the entire toolbar is greyed out without having a file open.

I tried adding this into the yaml file but it’s not working.

title: [Button Title]
tooltip: [Button Description]
enabled: true
alwaysavailable: true

Any advice / help is welcome!

Thanks

Hi, and Welcome,

try in your bundle.yaml for your button:
context: zero-doc

Bundle context

Thank you very much @Jean-Marc !!

I managed to get a single pushbutton to work, but I’m struggling with a Panel > Pulldown > urlbottons. Can this be done? Attached are some screenshots, not sure if I’m getting the syntax wrong?

Thank you!

Hi @Jean-Marc ,

Managed to get it working!! Thank you very much for helping me out, appreciated!!

Kind Regards

1 Like

you probably need to restart Revit for such changes. the Reload button does not always work as expected when updating thte UI/buttons

1 Like

Thank you, and yes, I did open and close Revit a couple of times. I ended up also putting “context: zero-doc” in all the *.yaml files throughout the button hierarchy.