I am getting back into programming using the Revit API. The last version of the API that I used was 2010. Back then there was a graphical representation of the Revit Object Model in PNG format (Revit API Class Diagram.png). I have not been able to locate one for the Revit 2014 Object model. Does anyone know if one exists?
Hello sbaldy,
I am sorry, we haven't provided an API class chart since version 2012, I believe. The Revit API has been growing rapidly in the past years and it had become impractical at some point to try fit everything in one chart.
Arnošt Löbel
Autodesk Revit R&D
Dear Scott,
Thank you for your query.
Actually, the Revit 2010 version is indeed the last one known.
Here is a blog post explaining more details, what tools to use instead, and how you might be able to create one for yourself, if you really want to:
http://thebuildingcoder.typepad.com/blog/2012/01/no-revit-api-class-diagram.html
If you do decide to create one, please let us know. Thank you!
It also includes another copy of the Revit 2010 API class diagram that you provide above 🙂
I hope this helps.
Best regards,
Jeremy
I tried to reply on the above post but don't think it went through.
Call me a little crazy but I actually like these things (visual diagrams of API). For a person who doesn't know what exactly they are looking for in an API to do a certain function or item then it's really nice to quickly glance and be able to have a visual of how things are structured. So the visual person in me likes them and can remember something on a diagram like this verses going through text documents a lot easier. I know it's a lot, but I have used the inventor object model chart for programs on numerous occasions.
JMO. Thanks.
Dear Kmiller,
Thank you for your opinion.
I did a quick check on the Internet and came up with the same autodiagrammer suggestion mentioned in the discussion on The Building Coder listed above, plus a neat suggestion on stackoverflow:
As far as I understand, it suggests using a tool built in to Visual Studio.
Would you like to try it on the Revit API and let us know what you come up with?
Thank you!
Best regards,
Jeremy
Hi kmiller
I did a quick test of the approach described in the link Jeremy suggested. I can confirm that this works in Visual Studio 2013 - allthough I had to drag and drop from a class view instead of the object browser.
I've attached the result generated after a couple of 'expand/layout diagram'. When I zoom the pdf to about 1600% it's readable but I'm sure the layout can be improved with a little more effort 🙂 (It covers 2015 Revit.DB namespace by the way)
Regards
Peter
Dear Peter,
That is absolutely fantastic!
Wow, thank you for trying it out!
I added it to The Building Coder samples in release 2015.0.120.1:
https://github.com/jeremytammik/the_building_coder_samples/releases/tag/2015.0.120.1
It really is very hard to navigate and read, though.
Now we just need a volunteer to format it nicely...
Maybe Sbaldy or Kmiller would like to jump in here?
Thank you!
Cheers,
Jeremy
Hey guys,
I published our discussion on The Building Coder:
http://thebuildingcoder.typepad.com/blog/2015/03/split-personality-and-revit-api-class-diagram.html
I also took the opportunity to announce my new blog, The 3D Web Coder:
http://the3dwebcoder.typepad.com
Exciting, and lots to do!
Cheers,
Jeremy
Thank you guys so much I will take a look at the attachments. I had replied to the email update for the forum. or thought I did but it didn't look like it got posted on the forum. I am running visual Studio 2012 Express so I don't think there was the option for viewing the object Explorer. Our IT department does have a full version so I was going to check with them. But since you guys are so helpful I will take a peak at the files on here. Will also keep looking to see if the option is in express.
I did however get the Revit Look up tools on jeremy's site loaded as well and I think that will be of great benefit.
Thank you!
PS - I don't blame you guys one bit for not wanting to keep up a visual. There is definately a lot of stuff going on and also with things still changing every release I can imagine it's an extreme amount of work to try to keep it updated.
Dear Kmiller,
I loaded the CD class diagram file in Visual Studio 2012.
Cheers,
Jeremy
We can keep this CD file nice and readable as a community effort, maybe as part of The Building Coder samples.
Ridiculous, a multi-billion dollar software enterprise that cannot make their own API for Revit easy to find.