O'Reilly logo

Instant Autodesk Revit 2013 Customization with .NET How-to by Don Rudder

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding a custom push button (Must know)

Now that we have a fundamental grasp of ribbon controls, let's create a push button to access the command we just created. In this recipe, we will build a reusable function that we will use to add a push button control to a custom tab in the Revit ribbon.

Getting ready

Remember the manifest file and how to add new applications to it? We need to edit our Revit2013Samples_VB.addin manifest file so that our new application class will load into the Revit session. Add the following block of code inside the RevitAddIns attribute being careful not to nest it inside any other Command, Application, or DBApplication tags:

 <AddIn Type="Application"> <Name>Application Ribbon</Name> <Assembly>Revit2013Samples_VB.dll</Assembly> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required