Some really strange thing here. In a graph I use a FilteredElementCollector(doc).OfCategory(BuiltInCategory.OST_Rooms).ToElements()
But it turn out it doesn’t return every element of the mentioned category
But when I snoop the DB, the Room is there with its category and nowhere to be found in the collector.
Thank you all,
Had no clue it wasn’t allowed to compare DB.Element !
After running several tests, the collector returned the missing room indeed. My issue was with an other part of my code / graph.