Message 1 of 2

Not applicable
12-19-2018
01:29 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I'm trying to get all rooms' parameters in a file without any room.
I tried the following code but I notice that I can get all families but rooms and areas:
FilteredElementCollector elementCol = new FilteredElementCollector(doc).OfClass(typeof(FamilySymbol));
also
FilteredElementCollector elementCol = new FilteredElementCollector(doc).OfCategory(BuiltInCategory.OST_Rooms);
this only works if I have at least one room in the file.
Anyone can help me?
Solved! Go to Solution.