Table of Contents

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 IfcSelector

Inheritance

Inherited Members

Constructors

IfcSelector(string)

public IfcSelector(string query)

Parameters

query string

Properties

AtomicSelectors

public IReadOnlyList<IfcAtomicSelector> AtomicSelectors { get; }

Property Value

IReadOnlyList<IfcAtomicSelector>

QueryString

public string QueryString { get; }

Property Value

string

Methods

Evaluate(IfcModel)

Selects all elements in the model matching this selector query.

public IEnumerable<IfcElement> Evaluate(IfcModel model)

Parameters

model IfcModel

Returns

IEnumerable<IfcElement>

Matches(IfcElement, IfcModel?)

Returns true if the element matches the query selector.

public bool Matches(IfcElement element, IfcModel? model = null)

Parameters

element IfcElement
model IfcModel?

Returns

bool

Parse(string)

Compiles a selector query string into an executable IfcIO.Query.IfcSelector.

public static IfcSelector Parse(string query)

Parameters

query string

Returns

IfcSelector