@twinfinity/core
    Preparing search index...

    Class T8Product<TEntityType, TUnit>

    Represents a building product (element) in the T8 Client Model. Products represent physical or logical building components (walls, doors, spaces, etc.).

    const model = readT8ClientModel(buffer);
    const wall = model.products.find(p => p.className === 'IfcWall');
    console.log(`Wall: ${wall.name}`);
    console.log(`Type: ${wall.className}`);
    console.log(`Properties:`, wall.propertySets);
    console.log(`Contains ${wall.contains.length} elements`);

    Type Parameters

    • TEntityType = T8EntityType

      The entity type (default: T8EntityType)

    • TUnit = T8Unit

      The unit type (default: T8Unit)

    Hierarchy (View Summary)

    Index

    Constructors

    • Type Parameters

      Parameters

      • localId: number

        Local numerical identifier within the model

      • globalId: string

        Global unique identifier (GUID)

      • className: string

        Class name (e.g., 'IfcWall', 'IfcDoor')

      • data: Record<string, boolean | number | string>

        Custom data values attached to this product

      • OptionalpropertySets: Record<string, T8PropertySet<TUnit>>

        Property sets (e.g., Pset_WallCommon)

      • OptionalcomputedPropertySets: Record<string, T8PropertySet<TUnit>>

        Computed property sets (e.g., Pset_Twinfinity_Aggregates)

      • Optionalquantities: Record<string, T8QuantitySet<TUnit>>

        Quantity sets (e.g., Qto_WallBaseQuantities)

      • Optionalname: string

        Optional name of the product

      • Optionaldescription: string

        Optional description of the product

      • Optionaltag: string

        Optional tag identifier

      Returns T8Product<TEntityType, TUnit>

    Properties

    aggregates: readonly T8Product<TEntityType, TUnit>[]

    Products that are aggregated by this product

    className: string

    Class name (e.g., 'IfcWall', 'IfcDoor')

    computedPropertySets: Record<string, T8PropertySet<TUnit>>

    Computed property sets (e.g., Pset_Twinfinity_Aggregates)

    contains: readonly T8Product<TEntityType, TUnit>[]

    Products that are contained within this product (spatial containment)

    data: Record<string, boolean | number | string>

    Custom data values attached to this product

    definedByType?: TEntityType

    The entity type (class) this product is an instance of

    description: undefined | string

    Optional description of the product

    facility: undefined | T8Product<TEntityType, TUnit>
    facilityPart: undefined | T8Product<TEntityType, TUnit>
    globalId: string

    Global unique identifier (GUID)

    localId: number

    Local numerical identifier within the model

    name: undefined | string

    Optional name of the product

    parent: undefined | T8Product<TEntityType, TUnit>
    propertySets: Record<string, T8PropertySet<TUnit>>

    Property sets (e.g., Pset_WallCommon)

    quantities: Record<string, T8QuantitySet<TUnit>>

    Quantity sets (e.g., Qto_WallBaseQuantities)

    site: undefined | T8Product<TEntityType, TUnit>
    tag?: string

    Optional tag identifier

    Accessors

    • get hasGeometry(): boolean

      Returns boolean

    • get hasStructuredRelationships(): boolean

      Returns boolean

    Methods