Structural Element Filtering
Overview
Select structural elements using the enumerated value StructuralType
.
Structural Types
StructuralType.NonStructural
: All non-structural elementsStructuralType.Beam
: Structural beamsStructuralType.Brace
: Structural braces or brace postsStructuralType.Column
: Structural columnsStructuralType.Footing
: Structural foundationsStructuralType.UnknownFraming
: Structural use unknown
Example
-
Create the filter:
Filter = ElementStructuralTypeFilter(Structure.StructuralType.Footing)
-
Apply the filter to the collector:
Foundations = FilteredElementCollector(doc).WherePasses(Filter).WhereElementIsNotElementType().ToElements()