Skip to main content

T8Unit

Represents a unit of measurement in the T8 Client Model. Units define the measurement system for quantities and values (e.g., meters, square meters).

@example
const model = readT8ClientModel(buffer);
const units = model.units;
const meters = units.find(u => u.name === 'METRE');
console.log(`Unit: ${meters.name}, Type: ${meters.type}`);

Index

Constructors

Properties

Methods

Constructors

constructor

  • new T8Unit(name: string, type: string): T8Unit
  • Parameters

    • name: string

      Name of the unit (e.g., 'METRE', 'SQUARE_METRE')

    • type: string

      Type classification of the unit (e.g., 'LENGTHUNIT', 'AREAUNIT')

    Returns T8Unit

Properties

publicname

name: string

Name of the unit (e.g., 'METRE', 'SQUARE_METRE')

publictype

type: string

Type classification of the unit (e.g., 'LENGTHUNIT', 'AREAUNIT')

Methods

publicstaticcreate

Page Options