Class IfcSelector
- Namespace
- IfcIO.Query
- Assembly
- IfcIO.dll
High-performance query selector engine for IFC elements conforming to IfcOpenShell query selector syntax.
Supports entity types (e.g. IfcWall), spatial storeys (e.g. #Level 1),
property filters ([LoadBearing=TRUE], [FireRating>=60], [Name*='Conc']), and union lists (IfcWall, IfcColumn).
public sealed class IfcSelectorInheritance
Inherited Members
Constructors
IfcSelector(string)
public IfcSelector(string query)Parameters
querystring
Properties
AtomicSelectors
public IReadOnlyList<IfcAtomicSelector> AtomicSelectors { get; }Property Value
QueryString
public string QueryString { get; }Property Value
Methods
Evaluate(IfcModel)
Selects all elements in the model matching this selector query.
public IEnumerable<IfcElement> Evaluate(IfcModel model)Parameters
modelIfcModel
Returns
Matches(IfcElement, IfcModel?)
Returns true if the element matches the query selector.
public bool Matches(IfcElement element, IfcModel? model = null)Parameters
elementIfcElementmodelIfcModel?
Returns
Parse(string)
Compiles a selector query string into an executable IfcIO.Query.IfcSelector.
public static IfcSelector Parse(string query)Parameters
querystring