Skip to main content

Element Filter

Less than 1 minute

some methods and algorithms based on FilteredElementCollector class encapsulation

Tips

The following documentation only provides function prototypes, if you have any questions please check the Documentation

GetElementsByClass

Collect elements by element type, or if the view is not empty, only the elements visible in the current view are collected.

RevitSugar.DB.ElementFilterExtensions.GetElementsByClass<T>(Autodesk.Revit.DB.Document,Autodesk.Revit.DB.View,System.Func<T, bool>)

GetElementsByCategory (BuiltInCategory)

Collect elements according to their built-in categories, or if the view is not empty, only the elements that are visible in the current view are collected.

RevitSugar.DB.ElementFilterExtensions.GetElementsByCategory``1(Autodesk.Revit.DB.Document,Autodesk.Revit.DB.BuiltInCategory,Autodesk.Revit.DB.View,System.Func<T, bool>)

GetElementsByCategory (Category)

Collect elements by their category, or if the view is not empty, only the elements that are visible in the current view are collected.

RevitSugar.DB.ElementFilterExtensions.GetElementsByCategory``1(Autodesk.Revit.DB.Document,Autodesk.Revit.DB.Category,Autodesk.Revit.DB.View,System.Func<T, bool>)

GetElementsByFilter

Collect elements according to the element filter, and if the view is not empty, only the elements that are visible in the current view are collected.

RevitSugar.DB.ElementFilterExtensions.GetElementsByFilter(Autodesk.Revit.DB.Document,Autodesk.Revit.DB.ElementFilter,Autodesk.Revit.DB.View,System.Func<T, bool>)