I'm using this code to create a ribbon panel and place some buttons on it.
RibbonPanel ribbonPanel = application.CreateRibbonPanel(firstPanelName);
PushButtonData buttonData = new PushButtonData(... etc..
Is there a way to change the visibility of button based on if you're in a project view or the family editor? I have different tools specific to both views and I'd like to prevent the user from running a family tool on a project.
Any help is appreciated, Thanks!
Thanks! That definitely pointed me in the right direction. It seems that all the samples I'm finding are triggered by what you have selected or by what version of Revit you're using. They work just fine. Is there a way to have it look for Project vs. Family Editor for the trigger?
You ciould try the Document.OwnerFamily property:
http://revitapisearch.com/html/95b303dc-1569-492d-6863-fbe49f6189b0.htm
Cheers,
Jeremy