Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Ribbon Settings and drop down Pin

2 REPLIES 2
Reply
Message 1 of 3
babu.rajan
349 Views, 2 Replies

Ribbon Settings and drop down Pin

How can we access Ribbon's drop down Pin and settings (a small arrow at the corner)

 

 ribbonSettings1.jpg

ribbonSettings2.jpg

2 REPLIES 2
Message 2 of 3
rosalesduquej
in reply to: babu.rajan

The way to access this will be using AdWindows.dll which for Revit API is unsupported. You can take a look at some of the examples from the blog The Builder Coder regarding cutomization of the Ribbon using this DLL. 

 

http://thebuildingcoder.typepad.com/blog/2011/02/pimp-my-autocad-or-revit-ribbon.html

 

In the case of supported API, RibbonPanel.AddSlideOut() adds a sliding panel like the one shown to custom Ribbon UI.  You can’t do anything with the pin – the user should have control over whether they want it extended or not.

 

Hope this helps.

 

Cheers,

 



Jaime Rosales D.
Sr. Developer Consultant
Twitter | AEC ADN DevBlog
Message 3 of 3
babu.rajan
in reply to: rosalesduquej

here is the code how i get the pin to work.

    

 public void PushButton_Settings(RibbonPanel HyderApp)
        {
            HyderApp.AddSlideOut();// this Give me Pin! 

            PushButtonData pushButtonData1 = new PushButtonData("Settings", "File path Settings", _introLabPath, "HCL_Ribbon.Command");
            pushButtonData1.LargeImage = NewBitmapImage("Setting-icon.png");
            pushButtonData1.Image = NewBitmapImage("Setting-icon.png");
            pushButtonData1.ToolTip = "set the path to the folder location";

            HyderApp.AddItem(pushButtonData1);

        }   

 pin.jpg


  

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Rail Community