Adding events to Buttons in Ribbon Panel

Adding events to Buttons in Ribbon Panel

Anonymous
Not applicable
758 Views
3 Replies
Message 1 of 4

Adding events to Buttons in Ribbon Panel

Anonymous
Not applicable

 

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));

 

 

 

0 Likes
759 Views
3 Replies
Replies (3)
Message 2 of 4

jeremytammik
Autodesk
Autodesk

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

Message 3 of 4

farisarch
Explorer
Explorer
hi,
is there a CommandHandler for revit pushbutton?
0 Likes
Message 4 of 4

jeremytammik
Autodesk
Autodesk

Yes, IExternalCommand.

 

Please refer to the Revit API getting started material:

 

http://thebuildingcoder.typepad.com/blog/about-the-author.html#2

 

Best regards

 

Jeremy



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

0 Likes