@twinfinity/core
    Preparing search index...

    Class 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.

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

    Type Parameters

    • TUnit = T8Unit

      The unit type (default: T8Unit)

    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., 'IfcWallType', 'IfcDoorType')

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

        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

    className: string

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

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

    Custom data values attached to this entity type

    description?: string

    Optional description of the entity type

    globalId: string

    Global unique identifier (GUID)

    localId: number

    Local numerical identifier within the model

    name?: string

    Optional name of the 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

    tag?: string

    Optional tag identifier

    Accessors

    Methods