Revit API

Posts: 12
Registered: ‎06-29-2012
Message 1 of 2 (153 Views)

Adding events to Buttons in Ribbon Panel

153 Views, 1 Replies
10-04-2012 02:22 AM


Hello , I am have created Push Button in Ribbon Panel. When this button is clicked it should display data to user which is stored in MS ACCESS / SQL Express. Can anyone please tell me, how will it be ? 




pushButton = splitButton.AddPushButton(new PushButtonData(" Datapush", " Data", AddInPath, "Revit.SDK.Samples.Ribbon.CS.Command"));


pushButton.LargeImage = new BitmapImage(new Uri(Path.Combine(ButtonIconsFolder, "image.png"), UriKind.Absolute));

pushButton.Image = new BitmapImage(new Uri(Path.Combine(ButtonIconsFolder, "image.png"), UriKind.Absolute));




ADN Support Specialist
Posts: 457
Registered: ‎08-20-2007
Message 2 of 2 (133 Views)

Re: Adding events to Buttons in Ribbon Panel

10-09-2012 03:50 AM in reply to: mohammadarslan

Please look for samples on The Building Coder blog. They are legion.

Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.