ADN-DevTech / RevitTrainingMaterial considerations. Beginners mistakes

ADN-DevTech / RevitTrainingMaterial considerations. Beginners mistakes

Anonymous
適用対象外
347件の閲覧回数
1件の返信
メッセージ1/2

ADN-DevTech / RevitTrainingMaterial considerations. Beginners mistakes

Anonymous
適用対象外

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 件のいいね
348件の閲覧回数
1件の返信
返信 (1)
メッセージ2/2

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.

0 件のいいね