I already used python to hide and unhide ribbonTabs, now i have questions for further maipulation of Tabs and Panels.
First, I would like to make a button to keep the current Tab active. Revit changes to the modify tab as soon as i select a model element, i want to prevent that behavior. Is this possible?
Second, i would like to untoggle all panels of a ribbon at once. Doable with the API or not?
After using the dynamo player for 2 years i am searching for a good method to use my new pyRevit tabs and keep them in foreground.
As far as I’m aware there is no built-in way to prevent Revit from switching to the modify tab. However, it may be possible to create a workaround. But, it would be difficult to implement what I have in mind and I would not recommend it either.
As for toggling panels of a ribbon. It should possible to disable the tabs/panels/buttons of anything in the ribbon through the AdWindows.dll. However, I’m not sure if such a use case is officially supported. I’ve done something similar that will hide and disable one of my tabs when I’m not in a FamilyDocument.
Because that would be too easy! Haha yeah my knowledge when it comes to imports and references is a little cobbled together if I’m being honest. That is a much better way, thanks for sharing.
I installed Revit Lookup today for the first time and was excited to test it. Lost 2 hours of work because revit lookup gives me only one thing, a fatal error
you are unlucky, I uninstalled the previous version and installed the latest from 2 days ago and it worked like a charm with so many improvements.
You may want to file an issue report on their github accompanied with your revit journal file that will show the devs a bit more what is happening that makes it crashing
regarding your first question, isn’t it what you are trying to achieve?
Oh, yes! Thank you @Jean-Marc i didn´t know that. Would be great if we could controle that with the API but I´m afraid it´s not possible. So maybe working with an untoggled panel will be the better solution…