Bitbybit Docs
    Preparing search index...

    Class IFCSpacesBeta

    Spaces: the rooms and areas of a storey, each an outline in the storey's plan extruded up to its height, with a number and a name. Tools schedule rooms and their areas from them.

    Index

    Constructors

    create

    query

    Constructors

    create

    • Beta

      Adds a space to a storey: a room or an area, from an outline in the storey's plan, height high. A space is part of its storey, as IFC aggregates spaces, rather than an element on it.

      Parameters

      Returns Promise<IfcModelPointer>

      A new model with the space

      model = await bitbybit.ifc.spaces.add({ model, storey: "ground", id: "kitchen", name: "0.01", longName: "Kitchen", outline: [[0, 0], [4000, 0], [4000, 3000], [0, 3000]], height: 2700 });
      

    query

    • Beta

      Lists the spaces of the model, or of one storey, with their numbers, names, areas and heights.

      Parameters

      Returns Promise<SpaceInfoDto[]>

      The spaces

      const rooms = await bitbybit.ifc.spaces.list({ model, storey: "ground" });