Skip to main content

T8Project <TProduct, TUnit>

Represents a project in the T8 Client Model. A project is the root container that holds the site and overall project information.

@example
const model = readT8ClientModel(buffer);
const project = model.project;
console.log(`Project ID: ${project.globalId}`);
if (project.isIterable()) {
for (const product of project) { ... }
}

Index

Constructors

constructor

  • new T8Project<TProduct, TUnit>(localId: number, globalId: string, type: string, propertySets: Record<string, T8PropertySet<TUnit>>, quantities: Record<string, T8QuantitySet<TUnit>>, name?: string, description?: string): T8Project<TProduct, TUnit>
  • Type parameters

    Parameters

    • localId: number

      Local numerical identifier within the model

    • globalId: string

      Global unique identifier (GUID)

    • type: string

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

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

      Property sets attached to this project

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

      Quantity sets attached to this project

    • optionalname: string

      Optional name of the product

    • optionaldescription: string

      Optional description of the product

    Returns T8Project<TProduct, TUnit>

Properties

publicaggregates

aggregates: TProduct[] = ...

The products aggregated by the project (generally on single IfcSite)

publicoptionaldescription

description?: string

Optional description of the product

publicglobalId

globalId: string

Global unique identifier (GUID)

publiclocalId

localId: number

Local numerical identifier within the model

publicoptionalname

name?: string

Optional name of the product

publicpropertySets

propertySets: Record<string, T8PropertySet<TUnit>>

Property sets attached to this project

publicquantities

quantities: Record<string, T8QuantitySet<TUnit>>

Quantity sets attached to this project

publictype

type: string

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

Accessors

className

  • get className(): string
  • Returns string

quantitySets

Methods

isIterable

publicstaticconnect

publicstaticcreate