Message 1 of 2
Doors from rooms
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
How can I get list of all doors from level 01(355) that are direction from rooms
In final I need for each room all doors that are from each room.
IEnumerable<Element> doors = new FilteredElementCollector(doc).OfClass(typeof(FamilyInstance)).OfCategory(BuiltInCategory.OST_Doors).Where(e => e.LevelId.IntegerValue.Equals(355));
IEnumerable<FamilyInstance> doors_to = from FamilyInstance f in doors where f.ToRoom.Name !=null select f;
foreach (FamilyInstance door in doors_to)
{
TaskDialog.Show("Door Name", door.Name + door.ToRoom.Name);
}