@twinfinity/core
    Preparing search index...

    Class T8ClientModel<TProject, TProduct, TEntityType, TUnit>

    Main container class for a T8 Client Model. Contains all building elements (products), entity types, units, and their relationships.

    const buffer = await fetch('model.t8cm').then(r => r.arrayBuffer());
    const model = readT8ClientModel(buffer);
    console.log(`Loaded ${model.products.length} products`);
    console.log(`Model has ${model.entityTypes.length} entity types`);

    Type Parameters

    • TProject = T8Project

      The project type (default: T8Project)

    • TProduct = T8Product

      The product type (default: T8Product)

    • TEntityType = T8EntityType

      The entity type (default: T8EntityType)

    • TUnit = T8Unit

      The unit type (default: T8Unit)

    Index

    Constructors

    Properties

    computedPropertySetRepository: T8PropertySetRepository<TUnit>

    Repository for accessing computed property sets

    entityTypes: TEntityType[]

    Array of all entity types (e.g. types of walls) defined in the model

    products: TProduct[]

    Array of all products (building elements) in the model

    project: TProject

    The project information

    propertySetRepository: T8PropertySetRepository<TUnit>

    Repository for accessing property sets

    quantitySetRepository: T8QuantitySetRepository<TUnit>

    Repository for accessing quantity sets

    units: TUnit[]

    Array of all units of measurement used in the model