ADN-DevTech / RevitTrainingMaterial considerations. Beginners mistakes

Anonymous

ADN-DevTech / RevitTrainingMaterial considerations. Beginners mistakes

Anonymous
Not applicable

I've recently started learning about Revit API basing on https://github.com/ADN-DevTech/RevitTrainingMaterial . I decided that I will post remarks about the Intro Labs if I find things that IMO might require change/update.

 

My skills in coding are extremely poor but if at least one of my comments will make things easier for future learners my mission here would be complete.

 

Revit Intro Lab2 

The fact that we don't write the class name before using _doc a few lines below was something that skipped my attention since I'm learning the C# language through this tutorial as well. Highlighting this might save someone couple of hours looking for mistakes (as I did).

Przechwytywanie.JPG

Revit Intro Lab2

In the Word doc algorithm which I commented out was advised. For some reason, it didn't work. I got an error that I might have forgotten casting. I couldn't get around it. Fortunately enough, in the source code attached to the intro lab, a different solution was used and this time it worked.

Przechwytywanie.JPG

 

0 Likes
Reply
275 Views
1 Reply
Reply (1)

Anonymous
Not applicable

Revit Intro Lab3 - Element Filtering

Quote:

Required Namespaces: 
Namespaces needed for this lab are:  
•	System.Linq  
•	Autodesk.Revit.DB
•	Autodesk.Revit.UI
•	Autodesk.Revit.ApplicationServices
•	Autodesk.Revit.Attributes 

It's missing System.Collections.Generic. Otherwise, you cannot use IList<Element> in your code.

0 Likes