Create a Real Revit Ribbon Tab

We made it to Paris on Friday after all, arriving a ten in the morning instead of the Thursday evening as planned.
Still, we were able to successfully present the DevDays conference, so that was good.
That was also the last day of my working year, at least officially.
I spent the evening in Paris and had a nice train ride through the snow back to Switzerland on Saturday.

I have a number of Christmas presents collecting here in my inbox.
The latest addition is a little note from
Guy Robinson
wishing us all a Merry Christmas and pointing out that my post on creating a

custom ribbon tab
can
easily be enhanced to

create a real Revit ribbon tab

containing a real Revit ribbon panel.
With that in hand, the standard Revit API commands can be used to create ribbon buttons which can

launch Revit external commands
as usual.

I am hoping to find time in the next few days to present some more of the goodies I am sitting on before I head off into a real break.


Comments

4 responses to “Create a Real Revit Ribbon Tab”

  1. Hi Jeremy,
    Hope you’re fine.
    When I create a panel on the OnStartup event, it works.
    But, after modifying a Family, the panel is unloaded.
    Do you have a solution for it?
    Cheers!

  2. Daniel LAMBLIN Avatar
    Daniel LAMBLIN

    Hello Jeremy,
    The first thing that my compagny ask me to create, is a special TAB in REVIT.
    I use revit structure 2012. I try to create a revit ribbon tab. The tab and panel appear, but I have not the Ferrari ! In the stacktrace I saw problem in createButton call by ribbonpanel.additem : parentID could not be null or empty.
    If you have an idea.
    Thank you.
    Daniel LAMBLIN

  3. Dear Daniel,
    Congratulations on getting the tab and panel to appear.
    Samples of adding buttons are provided by the Revit SDK Ribbon sample. A simple minimal sample is also given by
    http://thebuildingcoder.typepad.com/blog/2010/02/creating-a-dimension-label.html
    A more complex sample including image handling is provided by the string search plugin of the month:
    http://thebuildingcoder.typepad.com/blog/2011/10/string-search-adn-plugin-of-the-month.html
    Good luck with the Ferrari!
    Cheers, Jeremy.

  4. Daniel LAMBLIN Avatar
    Daniel LAMBLIN

    Hello Jeremy,
    I have now my Ferrari!
    More serious.
    I have adapted Redbolts.UI.AddTabComplete for REVIT 2012.
    (revit ‘s dlls have change from 2010, it was not so sample)
    Thank for this precious code.
    Daniel

Leave a Reply to Daniel LAMBLINCancel reply

Discover more from Autodesk Developer Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading