IFClite TypeScript API
    Preparing search index...

    Function spatialContainerPath

    • The name path of the nearest spatial container of an element (Project/ Building/Level 2/Room 204), or undefined when the element is not contained anywhere the hierarchy knows about. Prefers the finest container (elementToContainer: a space or zone) over the storey.

      An unnamed node contributes its LongName, else its IFC class name, so the path stays stable across exports. Names are trimmed so trailing whitespace an authoring tool leaves behind does not split one storey into two.

      Parameters

      Returns string | undefined