Frustrated: changes in version documentation

Frustrated: changes in version documentation

Anonymous
Not applicable
558 Views
2 Replies
Message 1 of 3

Frustrated: changes in version documentation

Anonymous
Not applicable

I'm trying to work through some of the myriad tutorials and am having a hard time even following along with some of the line-by-line walkthroughs.

 

i just identified that i had the Revit 2017 dlls instead of the 2014 dlls when following the DevTV demo.  It seems crazy that the structure of something as fundamental as selections could change between 2014 and 2017.  I was trying to make the foreach loop that steps through selected objects, but the structure of the Selection class seems to have changed between the 2014 and 2017 APIs.

 

I'm just feeling frustrated when trying to follow along with the different sample materials out there and not having things work, despite my code matching.

 

I guess it would make sense to learn on an older API since there should, theoretically, bet tutorial materials that work?

 

 

0 Likes
559 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable

Hi OrangeOcelot,

 

I can sympathise with your struggles in starting your Revit API adventure.  When I started working with the Revit API some months ago, I felt very much the same level of frustration.  Yes, the documentation isn't very good and yes, some stuff doesn't work properly anymore without modification anymore, but it is what it is for now..  My best advice would be to start small and work your way to where you want to be.  Ask questions on here when you get stuck, everybody is always willing to help out.  Here are a few resources which have helped me greatly in addition to the documentation provided by Autodesk:

 

I highly recommend The Building Coder (Jeremy) blog for News/Updates and Sample Projects (although some older stuff does sometimes require tweaking to run!): http://thebuildingcoder.typepad.com/

 

How to get SDK Samples running with Revit 2017: http://thebuildingcoder.typepad.com/blog/2016/04/rvtsamples-for-revit-2017.html

 

The online API Documentation can be quite handy too for quickly looking things up and also contains docs for older API versions (which can help for comparing classes or API changes): http://www.revitapidocs.com/2017/

 

 

Best of luck in your journey!

 

 

Adam

0 Likes
Message 3 of 3

matthew_taylor
Advisor
Advisor

I've attached the 2013-2018 versions of the 'Revit Platform API Changes and Additions' document. You should be able to step through them to see what has changed. Hope that helps!

Also, just (google?) search for the problem function and 'deprecated'. The deprecated function intellisense will show which function to use instead, but that won't help if it's a few versions old.


Cheers,

-Matt
_______________________________________________________________________________
Marking a post as a 'solution' helps the community. Giving a post 'Kudos' is as good as saying thanks. Why not do both?
0 Likes