Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ADN-DevTech / RevitTrainingMaterial considerations. Beginners mistakes

1 REPLY 1
Reply
Message 1 of 2
Anonymous
246 Views, 1 Reply

ADN-DevTech / RevitTrainingMaterial considerations. Beginners mistakes

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

 

1 REPLY 1
Message 2 of 2
Anonymous
in reply to: Anonymous

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.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Forma Design Contest


Rail Community