Skip to main content

T8EntityType <TUnit>

Represents an entity type (class definition) in the T8 Client Model. Entity types define templates or classes that products can be instances of.

@example
const model = readT8ClientModel(buffer);
const wallType = model.entityTypes.find(t => t.type === 'IfcWallType');
console.log(`Wall Type: ${wallType.name}`);
console.log(`Properties:`, wallType.propertySets);

Index

Constructors

constructor

  • new T8EntityType<TUnit>(localId: number, globalId: string, className: string, data: Record<string, string | number | boolean>, propertySets: Record<string, T8PropertySet<TUnit>>, quantities: Record<string, T8QuantitySet<TUnit>>, name?: string, description?: string, tag?: string): T8EntityType<TUnit>
  • Type parameters

    Parameters

    • localId: number

      Local numerical identifier within the model

    • globalId: string

      Global unique identifier (GUID)

    • className: string

      Class name (e.g., 'IfcWallType', 'IfcDoorType')

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

      Custom data values attached to this entity type

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

      Property sets that define this entity type

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

      Quantity sets that define this entity type

    • optionalname: string

      Optional name of the entity type

    • optionaldescription: string

      Optional description of the entity type

    • optionaltag: string

      Optional tag identifier

    Returns T8EntityType<TUnit>

Properties

publicclassName

className: string

Class name (e.g., 'IfcWallType', 'IfcDoorType')

publicdata

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

Custom data values attached to this entity type

publicoptionaldescription

description?: string

Optional description of the entity type

publicglobalId

globalId: string

Global unique identifier (GUID)

publiclocalId

localId: number

Local numerical identifier within the model

publicoptionalname

name?: string

Optional name of the entity type

publicpropertySets

propertySets: Record<string, T8PropertySet<TUnit>>

Property sets that define this entity type

publicquantities

quantities: Record<string, T8QuantitySet<TUnit>>

Quantity sets that define this entity type

publicoptionaltag

tag?: string

Optional tag identifier

Accessors

quantitySets

Methods

publicstaticcreate