Message 1 of 4

Not applicable
09-29-2018
06:37 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi. I am new to Revit API. In many examles of code with filtering of elements that i saw there was a code like:
FilteredElementCollector f1 = new FilteredElementCollector(CurrentRevitDocument).OfClass(typeof(FamilyInstance)).OfCategory(CATEGORY_HERE); FilteredElementCollector f2 = new FilteredElementCollector(CurrentRevitDocument).OfCategory(CATEGORY_HERE);
I know about categories, types and so on but I can not understand, for examle
1. What is the difference in f1 and f2, f1 don't have family symbols in it or what?
2. How does work differ with these collectors?
3. Can you please give me the examle of correct code for filterring all elements in the revit part using, for examle, foreach cycle with BuiltInCategory, for better understanding?
Thanks for any help.
Solved! Go to Solution.