Ribbon Control Class Hierarchy

By Saikat Bhattacharya

While preparing for my lecture at AU 2012 on Revit UI API, I was looking at the documentation we have on the Revit ribbon control classes and how best I could explain the various types of ribbon control classes the API exposes. I also wanted to highlight some of the properties and method that each of them expose uniquely, primarily because of their unique behavior. For example, a textbox would behave quite differently from a drop-down list and so the properties and methods would be quite drastically different. Also, some of the ribbon control classes derived from another class and so they inherited some behavior (in terms of properties and methods) from the parent (base) class. So to map this entire relationship out more visually, I created a class hierarchy diagram for the Revit ribbon control classes. The diagram is included below and you can click on it to get a detailed view. 

Picture1

For each of the classes, I have listed some of the unique properties and methods that further enhance the understanding of the class and its implementation. If you need to know more about any of these classes, their listed properties or methods, you can search for the details in the RevitAPI.chm file which is included in the Revit SDK.


Comments

2 responses to “Ribbon Control Class Hierarchy”

  1. Hi Saikat,
    is it possible to get a diagram of the whole Revit API ?
    I know that the API became huge over the years, but perhaps Autodesk itself already has something like this for internal purposes, so it would be only a little step to bring such a chart to the public…
    Best regards,
    Rudolf

  2. Hi Rudolf
    There isnt any diagram of the whole of Revit API. And as much as I know, there isnt any such diagram that is used internally either.
    At the most, you can open up the Namespaces in Class View on the referenced Revit API dlls inside Visual Studio, and then click on View Class Diagram button. Doing this step by step assembles a partial class diagram for you.
    Sorry about this,
    cheers
    Saikat

Leave a Reply

Discover more from Autodesk Developer Blog

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

Continue reading