IFClite TypeScript API
    Preparing search index...

    Function expandTypeNamesToDescendants

    • Expand a caller's type list to every descendant each type has for a file written in schemaVersion — see the module doc for what that admits. Case-insensitive input; UPPERCASE output, deduplicated across the whole list, each requested type immediately ahead of its own sorted descendants.

      schemaVersion is required and should be the queried model's own store.schemaVersion. It is what keeps a re-parented entity out of the answer, so there is no sensible default: an omitted version would silently mean "IFC4", and on an IFC2X3 model that answer is wrong rather than approximate. Values with no bundled table fall back as documented on resolveSchemaVersion.

      A type unknown to every bundled table (a typo, a vendor extension) comes back as itself, so the caller's list keeps its shape rather than silently losing an entry.

      Parameters

      • types: readonly string[]
      • schemaVersion: string | undefined

      Returns string[]