IFClite TypeScript API
    Preparing search index...

    Function extractProjectUnits

    • Resolve the file's declared units from IFCPROJECT → IFCUNITASSIGNMENT. projectId defaults to the file's first IFCPROJECT (pass explicitly, from resolveOwningIfcProjectId, for an entity owning a later one). Source-only reads never throw: an absent/malformed assignment yields an empty resolver. An optional current provider refuses unreadable native contexts with ProjectUnitReadError instead of guessing their units.

      Parameters

      • source: Uint8Array<ArrayBufferLike> | IfcSourceBytes
      • entityIndex: EntityIndexLike
      • OptionalprojectId: number
      • OptionalreadEntity: UnitEntityReader

      Returns ProjectUnits