Collecting Elements

Here is some examples on collecting elements using the FilteredElementCollector. More information about the class can be found here

# Collect all Walls
walls = FilteredElementCollector(doc).OfClass(Wall)

# Collecting all Instances from category Furniture
collector = FilteredElementcollector(doc)
furniture_instances = collector.OfCategory(BuiltInCategory.OST_Furniture).WhereElementIsNotElementType()

results matching ""

    No results matching ""