IFClite TypeScript API
    Preparing search index...

    Function filterBuildingElements

    • Scope an unfiltered bim.query().toArray() result down to physical building elements, for the material summary and validation stats. bim.query() with no type filter answers with every IfcObjectDefinition occurrence, so spatial containers, groupings and drafting annotations would otherwise inflate the material summary and the unnamedElements/duplicateGlobalIds counts (an IfcAnnotation dimension line never carries a Name and is not a defect).

      Excluding rather than testing for IfcElement is deliberate: a positive test would also drop IfcGrid, IfcPort and the structural-analysis items, which this fix has no opinion about — they stay counted exactly as before.

      Type Parameters

      • T extends { type: string }

      Parameters

      • entities: T[]

      Returns T[]