# Part XXI. Quantities

*Part of 0.6. OpenEik 0.5 had it as the proposal `quantities` (open questions, 144): a model of 0.5, read by 0.5's rules (Part I, 9.6, rule 3), is read by it only where a caller asks for it (decision D12) or where it lists it (Part I, 9.12), and a model of 0.1 to 0.4 never; a reader of 0.5 that does not apply it keeps the member it adds as a member a schema does not know (Part I, 10). The steward chose quantities as the first subject of 0.6 on 6 November 2026 ("Mängder (Recommended)"); its shape is the editors' (question 126), and the choices of question 144 that were the steward's are written as the editors recommended them, as he decided on 6 November 2026, "Ja, alla (Recommended)" (section 14). On 9 November 2026 the editors settled what an analysis application's second reading found, as those choices point (section 14.1). Its schemas are in [`schemas/0.6/`](https://openeik.org/schemas/0.6/index.json): a project's `quantities` at `project/quantities.schema.json`, a result's at `quantities/result.schema.json` and its command's at `commands/project.quantities.schema.json`; and its vectors in `conformance/compiler/` (section 12). `@openeik/tools` derives, sums and prints them since 6 November 2026, of a model of 0.6, and of one of 0.5 when asked.*

## 1. Status and scope

Up to 0.5, a compiler derived quantities (Part IV, 1, rule 1) and a derived result carries them (Part IV, 1.1.2, rule 2), each `{value, unit, basis, rule}`, but which quantities an element has, what each name means and what a net one takes out are the compiler's own: Part IV, 9 reports them, informatively, as the reference implementation does, and only a room's are fixed (Part IV, 7.5, rule 6). A cost estimate, a schedule of the work and an energy balance all start from quantities, and two tools that read one model must read the same square metres of a wall's render and the same kilograms of its bars.

This part makes them rules. Each quantity has a **name**, one **unit** and one meaning in every category that has it; it is **net** or **gross** by its name, and the rules say what a net one takes out (section 3); a layer's are its own (section 3, rule 5); a mass comes from the materials' densities (section 4). Section 5 gives each category's quantities and the rule that derives each from the records. They are derived and never stored, and a derived result carries them in the form of section 6; a type's are its elements' summed, and section 7 gives the lists a schedule reads. A project may name the method of measurement its contract uses, and the standard holds nothing of the method but its name (section 8). An agent host sums them (section 9), and a bridge prints them as IFC's base quantities (section 10).

What it leaves out:

- **Prices.** A quantity is measured; what it costs is no record's. An estimate's codes are classification references (Part II, 11.1), and the price software neutral: no price, no price list and no code list of a vendor is the standard's.
- **A method's text.** A method of measurement, a national one or a contract's, is a name a project may state (section 8), never text the standard holds (open questions, 4): its thresholds, its own deductions and its units of sale are the application's that applies it.
- **Time.** When a quantity is built is a schedule's, which reads these.

### 1.1 The parts it extends

As Parts XIX and XX do, its text stays in this part. These are the sections it extends, where a later version may move it:

- Part II: the project's `quantities` (2), beside its `rooms`;
- Part IV: what is derived (1, rule 1), a result's quantities (1.1.2, rule 2), quantities (9), a room's (7.5, rule 6), and the vectors' quantities (10, rule 4);
- Part V: the command of section 8, rule 3;
- Part VII: `query` and the derived values beside a record (section 9);
- Part VIII: the base quantities of what a bridge prints (section 10).

## 2. A quantity

1. **Its form.** A quantity is `{value, unit, basis, rule}`: its value, in its unit; how it is measured, for people; and the rule that derives it, `XXI.<section>.<rule>` (`XXI.5.1.3` is section 5.1, rule 3), a numbered rule of this part.
2. **Its unit.** Lengths are in metres (`m`), areas in square metres (`m2`), volumes in cubic metres (`m3`), masses in kilograms (`kg`), and counts are counts (`count`). The records are in millimetres (Part I, 3); a quantity is in the units a schedule and a price are given in, and a value of 7.519 m³ is read where 7 519 000 000 mm³ is not. A count is a whole number.
3. **Its name.** Each quantity of this part is named as section 5 names it: one unit and one meaning in every category that has it, in lower camel case, as a record's members are. Where IFC4 gives the element's class a base quantity of that meaning, the name is IFC's with its first letter in lower case (`netSideArea`, IFC's `NetSideArea`), but where IFC's word means something else in OpenEik: a thickness is `thickness`, IFC's `Width`; a mass `netMass`, IFC's `NetWeight`; a bar set's bars `barCount`, IFC's `Count` (section 10). Otherwise the name is this part's own. A name that is net or gross says so first: `netVolume`, `grossSideArea`. `length` is the length of the line each category's section gives it, which that section measures its own way: in plan, along a line in 3D, or over every bar of a set; it is summed within one category (sections 7 and 9). An application's own quantities are its own (Part VI, 8), and never carry a name of this part with another meaning.
4. **Its value** is a finite number, 0 or more, as derived and not rounded: a reader rounds it for people. A count is exact. A rule that gives a value under 0 gives no quantity: a compiler leaves it out and says so (`quantity-negative`), and never writes 0 for it; a value under 0 by no more than 10⁻⁹ of its unit, which rounding alone leaves there, is 0.
5. **Not derived, not there.** A quantity whose rule the records do not let a compiler derive, an element whose body is reference behaviour (Part IV, 2) or one whose rule needs a record the model lacks, is left out: never 0, and never a value a rule does not give.
6. **Its basis** says, in words, whether it is net or gross and what it takes out. A reader takes a quantity's meaning from its name and its rule, never from its `basis`.

## 3. Net and gross

1. **Net.** A net quantity is measured on the element's bodies as Part IV derives them, with everything Part IV's rules take out of them taken out: a wall's doors and windows (Part IV, 4.3), a slab's, a foundation's, a ceiling's and a roof's voids, and the shafts through a slab, a ceiling and a roof, and through a foundation the shafts whose type's purpose is `stair`, the only shafts that cut a foundation (4.2, rules 4 and 8), and what its joins end (4.1.1; 6.4). `netVolume` is the volume an element's bodies hold, a cylinder's and a rod's exact, and a run's and a bar's by their own rules (sections 5.8 and 5.12).
2. **Gross.** A gross quantity is the same measure of the element as Part IV derives it from the model without its doors, windows and shafts and with no element's `voids`: its joins, its top, its outline, its layers and everything else of it as the net quantity's. Gross less net is what its doors, windows, voids and shafts take, and nothing else: a gross quantity is never less than its net one, and a member's, which none of them cuts, is its net one (section 5.3, rule 3).
3. **Every opening.** A net quantity takes out every door, window, void and shaft, whatever its size. A method that deducts only openings over a size takes the gross quantity less the openings it deducts, each a door's or a window's own area (section 5.4) or a void's outline.
4. **Nothing between elements.** An element's quantities are its own bodies'. Where two elements' bodies overlap, as a column stands in a wall or a wall on a slab, each counts the overlap: which of them gives way is a method's choice (section 8). What Part IV's rules end on one another is in their bodies, and counted once: a wall's corners and tees (4.1.1), a member's joins (6.4).
5. **A layer's quantities.** An element of a type with layers (Part II, 5.1) has each layer's quantities under `layers`, by the layer's id: its `thickness`, its type's; its `netVolume` and `grossVolume`, of the bodies that name the layer (Part IV, 1.1.1); its `netArea` and `grossArea`, each its volume over its thickness, the layer's mean area across its thickness, which is its area in plan in a level slab and its area on its own middle line in a wall; and its `netMass` (section 4). A layer of no thickness, a membrane, has no body: its volumes are 0, and its areas are those of the layer before it, nearer the exterior or the top, else of the layer after it.

## 4. Mass

1. **A mass** is a net volume times the density of its material, `density` in kg/m³ (Part II, 4.1), where the object that names the material names one of the model's materials and it gives a density: `netMass`, in kg. Rules 2 to 6 say whose volume and which material.
2. **A layered element's** is the sum of its layers' masses, each its layer's volume times its layer's material's density, a layer laid out in members excepted (rule 5). Where a layer that has volume has no mass, the element has none.
3. **An element without layers**, a wall, a slab, a foundation, a ceiling, a roof, a column, a beam, a member or a stair, has its type's own material's: a beam of a framing family excepted, whose parts are of their own materials (Part IV, 6.6).
4. **A bar set's** is its nominal mass: its volume times 7850 kg/m³, the density of steel from which the nominal masses of reinforcing bars are worked out, whatever density its type's material gives, as a schedule of bars weighs them. A bar set whose type's material is of a category other than `steel` (Part II, 4.2), a bar of fibre-reinforced polymer, is its volume times its material's density, and has none where its material gives none.
5. **A layer laid out in members**, a wall's framed layer (Part IV, 7.4.1) or a slab's joist layer (7.4.15), is its members' mass: their volumes (7.4.10, rule 3) together, times the density of its rule's material (`framing.material` or `joists.material`, `C24` where it names none, 7.4.1, rule 2), where that names one of the model's materials that gives one, else of its layer's own material. What lies between its members is in no record, and has no mass; the layer's volume stays its body's (section 3, rule 5). A framed layer whose members are materialised as elements (7.4.12, rule 2) has no mass of its own, its members being elements with their own, and the element's mass is its other layers'. A layer whose rule a compiler does not lay out has no mass, and the element none.
6. **A slab edge element's** is the volume of its section's bodies times its type's material's density, and its facing's times its facing's material's (Part II, 5.6; Part IV, 4.6, rules 2 and 3), where both give one, and none otherwise. One of a framing family, or laid out in pieces (Part XX), is of its parts' materials, and has no mass by this rule.
7. **No other element has a mass**: a run's volume is the space it takes (Part IV, 12.4, rule 1), and a door's, a window's and a component's bodies are of more than one material.

## 5. The quantities of each category

Each category has the quantities its section names, and no other; an element of a category no section names has its `netVolume` (section 5.14). The column IFC names the base quantity a bridge prints each as (section 10); a quantity without one is printed in the bridge's own set. A name that is summed is one a type and a query add up (sections 7 and 9); a dimension, such as a thickness, is not.

### 5.1 Walls

| Name | Unit | Summed | IFC (`Qto_WallBaseQuantities`) |
|---|---|---|---|
| `length` | m | yes | `Length` |
| `thickness` | m | no | `Width` |
| `grossSideArea`, `netSideArea` | m2 | yes | `GrossSideArea`, `NetSideArea` |
| `openingArea` | m2 | yes | |
| `grossExteriorArea`, `netExteriorArea`, `grossInteriorArea`, `netInteriorArea` | m2 | yes | |
| `grossVolume`, `netVolume` | m3 | yes | `GrossVolume`, `NetVolume` |
| `netMass` | kg | yes | `NetWeight` |

1. **`length`** is its baseline's length in plan, from its first point to its second (Part IV, 3).
2. **`thickness`** is `T`, its type's layers' total thickness, else its `width` (Part IV, 4.1).
3. **Its side areas** are one side's area of its middle plane, the area in elevation over its baseline, from its base to its top over the baseline (Part IV, 5), within its `wallOutline` where one limits it: `grossSideArea` with nothing taken out, `netSideArea` with its doors' and windows' boxes or outlines taken out where they cut it (Part IV, 4.3), and `openingArea` the gross less the net. The middle plane runs from the baseline's first point to its second, whatever its ends' joins.
4. **Its faces.** `grossExteriorArea` and `netExteriorArea` are the area of the faces of its bodies that lie in the plumb plane of its exterior face, `T`/2 to the left of its baseline, which is its first layer's (Part I, 5); `grossInteriorArea` and `netInteriorArea`, of those in its interior face, `T`/2 to its right. A body's face lies in the plane where an edge of the body's outline in plan has both its ends within 0.001 mm of it; its area is the integral along that edge of the height from the body's underside to its top, each the least of its planes there (Part IV, 8, N1). So a face runs as far as the wall's corners and tees end its layers (Part IV, 4.1.1), up to its top as the face it is attached to cuts it (Part IV, 5.3), and not where a wall that ends against it as a T runs into it. Exterior and interior are the layers' order, not where the wall stands: a partition has both.
5. **`grossVolume`, `netVolume`** and **`netMass`** are section 3's and section 4's.
6. **Its layers** have the quantities of section 3, rule 5.

### 5.2 Slabs, foundations, ceilings and roofs

| Name | Unit | Summed | IFC: slab (`Qto_SlabBaseQuantities`), foundation (`Qto_FootingBaseQuantities`), ceiling (`Qto_CoveringBaseQuantities`), roof (`Qto_RoofBaseQuantities`) |
|---|---|---|---|
| `thickness` | m | no | a slab's and a ceiling's `Width`, a foundation's `Height` |
| `grossArea`, `netArea` | m2 | yes | a slab's, a ceiling's and a roof's `GrossArea`, `NetArea` |
| `projectedArea` | m2 | yes | a roof's `ProjectedArea` |
| `perimeter` | m | yes | a slab's `Perimeter` |
| `ridgeLength`, `hipLength` | m | yes | |
| `grossVolume`, `netVolume` | m3 | yes | a slab's and a foundation's `GrossVolume`, `NetVolume` |
| `netMass` | kg | yes | a slab's and a foundation's `NetWeight` |

1. **`thickness`** is its type's layers' total thickness, else its `height` (Part IV, 4.2, rule 1); a pitched roof's measured square to its planes (Part IV, 4.4).
2. **Its areas** are its top face's, on its plane: a level one's in plan; a slab's on a sloped plane on its slope (Part IV, 4.2.1); a pitched roof's top surface, the least of its planes, on its slopes over its outline extended by its overhangs (Part IV, 4.4). `netArea` takes out its voids and the shafts through its whole thickness (Part IV, 4.2, rules 4 and 8), a foundation's those whose type's purpose is `stair`, as its volume does, and `grossArea` neither. A foundation's net area so differs from the area Part IV, 9 reports in 0.5, which keeps its shafts (Part IV, 4.2, its note): a foundation of 16 m² and 350 mm under a stair's shaft of 1 m² through it has a `netVolume` of 5.25 m³ and a `netArea` of 15 m², its volume over its thickness.
3. **`projectedArea`** is its net area in plan.
4. **`perimeter`** is the length of its outline in plan, as its edges are trimmed (Part IV, 4.5), a round footing's its circle's; its voids' outlines are not in it. A pitched roof has none.
5. **A pitched roof's lines**: `ridgeLength`, the level lines where two of its planes meet on its top surface, and `hipLength`, the sloping ones, along the slope (Part IV, 4.4).
6. **Its volumes, its mass and its layers** are sections 3 and 4's; its pieces' quantities, section 5.11's.

### 5.3 Columns, beams and members

| Name | Unit | Summed | IFC (`Qto_ColumnBaseQuantities`, `Qto_BeamBaseQuantities`, `Qto_MemberBaseQuantities`) |
|---|---|---|---|
| `length` | m | yes | `Length` |
| `crossSectionArea` | m2 | no | `CrossSectionArea` |
| `grossVolume`, `netVolume` | m3 | yes | `GrossVolume`, `NetVolume` |
| `netMass` | kg | yes | `NetWeight` |

1. **`length`** is a column's from its base, or its attached base, to its top (Part IV, 6.1), a beam's set-out line's, √(L² + endRise²) (6.2), and a member's line, from its start to its end (6.7), each as recorded: its joins do not change it (6.4).
2. **`crossSectionArea`** is its section's area (Part IV, 6.5), square to its line; a tapered one has none.
3. **`netVolume`** is its bodies', its joined ends lengthened and cut as Part IV, 6.4 says; a beam of a framing family's is its parts' volume (Part IV, 6.6). **`grossVolume`** is the same of the model without its doors, windows, voids and shafts (section 3, rule 2): its joins as its net volume's, so that a beam of 100 × 200 recorded 3.7 m long and butted against another, whose bodies run on to that beam's face, has the volume its bodies hold in both, never 0.074 m³ in one and more in the other. No door, window, void or shaft cuts a member, and its gross volume is its net one.

### 5.4 Doors and windows

| Name | Unit | Summed | IFC (`Qto_DoorBaseQuantities`, `Qto_WindowBaseQuantities`) |
|---|---|---|---|
| `width`, `height` | m | no | `Width`, `Height` |
| `area` | m2 | yes | `Area` |
| `perimeter` | m | yes | `Perimeter` |
| `netVolume` | m3 | yes | |

1. **`width`** and **`height`** are its own (Part II, 6.5).
2. **`area`** is its type's `outline`'s area, else its `width` times its `height`, as a room measures it (Part IV, 7.5, rule 6).
3. **`perimeter`** is the length round that outline, else twice its width and its height.
4. **`netVolume`** is its own bodies', where Part IV, 4.3.1 derives them.

### 5.5 Rooms

1. **Its quantities** are Part IV, 7.5, rule 6's, under its names: `height`, `grossPerimeter`, `netPerimeter`, `netFloorArea`, `grossWallArea`, `netWallArea`, `netCeilingArea` and `netVolume`, in IFC's `Qto_SpaceBaseQuantities`.
2. **Its net wall area** keeps the project's `rooms.openingMinArea`, a rule of 0.2 for a room's finishes, which this part does not change.

### 5.6 Stairs

| Name | Unit | Summed | IFC |
|---|---|---|---|
| `riserCount`, `treadCount` | count | yes | |
| `riserHeight`, `treadLength`, `width`, `height` | m | no | |
| `netVolume` | m3 | yes | |

1. **`riserCount`** and **`treadCount`** are its numbers' (Part IV, 7.3, rule 1), where 7.3 lays it out.
2. **`riserHeight`**, **`treadLength`**, its going, **`width`** across its run and **`height`**, from its base to its top, are its numbers'.
3. **`netVolume`** is a cast concrete stair's flights down to their soffits and its landings (Part IV, 7.3).

### 5.7 Railings

| Name | Unit | Summed | IFC (`Qto_RailingBaseQuantities`) |
|---|---|---|---|
| `length` | m | yes | `Length` |
| `postCount` | count | yes | |

1. **`length`** is its line's length in plan (Part IV, 11.2).
2. **`postCount`** is the posts `railing.posts.at` stands on its line (Part IV, 11.2, rule 5).

### 5.8 Pipes, ducts, cable carriers, cables and gutters

| Name | Unit | Summed | IFC (`Qto_PipeSegmentBaseQuantities`, `Qto_DuctSegmentBaseQuantities`, `Qto_CableCarrierSegmentBaseQuantities`, `Qto_CableSegmentBaseQuantities`) |
|---|---|---|---|
| `length` | m | yes | `Length` |
| `netVolume` | m3 | yes | |

1. **`length`** is a run's along its points in 3D, each bend taken as its corner (Part IV, 12.4, rule 2; Part XIII, 7), and a gutter's its eave line in plan where it is not buried (Part IV, 4.7).
2. **`netVolume`** is a run's outer section along its rounded path (Part IV, 12.4, rule 1), its fittings not in it, and a gutter's its section along its length. Section 7, rule 2 lists the runs' lengths by size.

### 5.9 Electrical devices and boards

1. **A device's or a board's** quantity is its `netVolume`, its body's (Part XIII, 7).
2. How many devices a type has is the type's `count` (section 7, rule 1); a modelled leg's length is section 7, rule 4's.

### 5.10 Slab edge elements

1. **`length`** is its host's edge in plan (Part IV, 4.6).
2. **`netVolume`** is its bodies', and **`netMass`** section 4, rule 6's; its pieces' quantities are section 5.11's.

An element whose type's section has the shape `none` ([Part II, 5.6.1](https://openeik.org/spec/0.7/language#5.6.1); in a model of 0.5, with the proposal `edgeNone`) has its `length` and no `netVolume`: it has no body (Part IV, 4.6.2), and the thickening its beam gives is its host's, in the host's `grossVolume`, `netVolume` and `netMass` (section 5.2, rule 6).

### 5.11 Pieces

1. **`pieceCount`** is a slab edge element's pieces, or a slab's or a foundation's boards in all its layers, none adopted (Part XX, 7, rule 1).
2. **`castVolume`** is the concrete cast in the room a section of parts leaves, and **`zoneVolume`** a slab's boards of a zone's stronger grade (Part XX, 7, rule 1). Section 7, rule 6 lists the cut list.

### 5.12 Bar sets

| Name | Unit | Summed | IFC (`Qto_ReinforcingElementBaseQuantities`) |
|---|---|---|---|
| `barCount` | count | yes | `Count` |
| `cutLength` | m | no | |
| `length` | m | yes | `Length` |
| `netVolume` | m3 | yes | |
| `netMass` | kg | yes | `Weight` |

1. **`barCount`** is the bars of a set, its `bars.count`, 1 where it gives none (Part IV, 7.7, rule 3): from its records alone, whether or not it gives its legs.
2. **`cutLength`** is one bar's, its centreline's length (Part IV, 7.7, rule 3), and **`length`** every bar's together. A set that gives no `legs` gives no centreline: it has neither, and no volume or mass (section 2, rule 5).
3. **`netVolume`** is π d²/4 times the length, and **`netMass`** section 4, rule 4's. Section 7, rule 3 lists them by diameter.

### 5.13 The ground

1. **`cutVolume`** and **`fillVolume`** are the cut and the fill of Part IV, 14.5, the quantities of the terrain whose id comes first.
2. A pit's quantities are section 7, rule 5's.

### 5.14 Every other element

1. An element with bodies that no section above names, a component (Part IV, 7.6), a terminal (12.6), a generic element or one whose envelope is declared (11.1 and 11.3), has its **`netVolume`**.

### 5.15 Site equipment

*Part of 0.7, with Part II, 6.3.6 and Part IV, 15. OpenEik 0.6 had it as the proposal `siteEquipment` (open questions, 166): applied to a model of 0.6 only where it is asked for or listed (Part I, 9.12), and to no model of 0.1 to 0.5.*

| Name | Unit | Summed | IFC |
|---|---|---|---|
| `length` | m | yes | |

1. **`length`** is a fence's line's length in plan (Part IV, 15, rule 4). A cabin, a container and a crane have none.
2. **No volume.** An element of the category `siteEquipment` has no `netVolume`, though it has bodies, and section 5.14 does not apply to it: it is no part of the building, and its body is the room it takes on the site, no volume of a material that is built or bought.
3. **By kind.** The site equipment by kind is a list beside those of section 7: for each kind that an element of the model is of, in the order `cabin`, `container`, `crane`, `fence`, how many elements are of it, a count; and, of the fences, their `length` together, with `of`, how many of them have one. An element is of the kind its type gives (Part II, 6.3.6, rule 2), and one whose type gives none is in no row. How many elements a type has is the type's `count` (section 7, rule 1).

Part IV, 15's four give one row each, a count of 1, and the fence's row a `length` of 70 m.

### 5.16 Openings that nothing fills

*Part of 0.7, with Part II, 6.5.2 and Part IV, 4.3.3. OpenEik 0.6 had it as the proposal `wallOpenings` (open questions, 184): applied to a model of 0.6 only where it is asked for or listed (Part I, 9.12), and to no model of 0.1 to 0.5.*

| Name | Unit | Summed | IFC (`Qto_OpeningElementBaseQuantities`) |
|---|---|---|---|
| `width`, `height` | m | no | `Width`, `Height` |
| `area` | m2 | yes | `Area` |
| `perimeter` | m | yes | |

1. **Its quantities** are a door's (section 5.4, rules 1 to 3): its own `width` and `height`, its type's outline's `area`, else its width times its height, and the `perimeter` round that outline, else twice its width and its height; a recess's as an opening's through its wall.
2. **No volume.** An element of the category `opening` has no `netVolume`: it has no body (Part IV, 4.3.3, rule 3). What it takes out of its wall is in the wall's quantities, net of it: a through-opening in its side areas and its volumes, a recess in its volumes alone (Part IV, 4.3.3, rule 4).
3. **Apart from the doors.** It is of a category of its own, so that a type's quantities (section 7, rule 1) and a host's sum of a filter (section 9) count it as an opening, never as a door or a window.
4. **IFC.** Section 10's table gains the row: IfcOpeningElement, `Qto_OpeningElementBaseQuantities`, `width`: Width, `height`: Height, `area`: Area (Part VIII, 1.19, rule 4).

Part II, 6.5.2's doorway has a width of 0.9 m, a height of 2.1 m, an area of 1.89 m² and a perimeter of 6 m; its niche 0.6 m, 0.6 m, 0.36 m² and 2.4 m.

## 6. Where they are

1. **Derived, never stored.** Quantities are derived (Part IV, 1, rule 1): no record holds them, and a member of a record that holds one is no quantity of this part.
2. **A result's quantities.** A derived result's `quantities` (Part IV, 1.1.2, rule 2) are the element's quantities of this part by their names, and `layers`, each layer's by its id, its quantities by their names, held to [`schemas/0.6/quantities/result.schema.json`](https://openeik.org/schemas/0.6/quantities/result.schema.json), which holds a result of 0.5's form too. Its `rule` names the rule set and this part, as `OpenEik 0.7 Part IV, class A; OpenEik 0.7 Part XXI` of a model of 0.7, `OpenEik 0.6 Part IV, class A; OpenEik 0.6 Part XXI` of a model of 0.6, and `OpenEik 0.5 Part IV, class A; OpenEik Part XXI, proposed for 0.6` of a model of 0.5 asked for the proposal, so that a reader that wants its own rules' result tells the two apart (1.1.2, rule 5). A result whose `rule` names Part XXI holds no other name, and each of its quantities is `{value, unit, basis, rule}`, its unit its name's (section 5), a count a whole number and its rule one of this part's: the schema holds it so, and a `netMass` in m³ is not one. A result of 0.5's form names no Part XXI.
3. **Its sources.** A result whose mass reads a material's density names that material, `materials/<id>`, among its sources (Part IV, 1.1.2, rule 3); a door's and a window's result, its own record and its type.

## 7. A type's quantities and a schedule's lists

1. **A type's quantities** are, for each summed name that one of its elements has, the sum of its elements' values, with `of`, how many of them have it, and its `count`, how many elements it has; and each layer's, the sum of its elements' layers', each with its `of`. A sum is the type's whole only where its `of` is its `count`: a reader reads both. A type's elements are of its category, and so are the lengths it sums. They are derived as its elements' are.
2. **Runs by size.** The pipes, ducts, cable carriers and cables, by category, type, system (the run's own `mep.system`, else none) and nominal size, `mep.size` and a rectangular one's `mep.height` (Part II, 6.9): how many runs, and their `length` together.
3. **Bars by diameter.** The bar sets by their `bars.diameter`: how many sets, and their `barCount`, `length`, `netVolume` and `netMass` together, each with `of`, how many of the sets have it: every set has its bars, and a set without legs no length, volume or mass (section 5.12).
4. **Cable by cable.** The modelled legs (Part XIII, 6.3) by the leg's cable (Part XIII, 3.2): how many legs, and their length together. A leg's estimated route is an application's (Part XIII, 8), and in no list.
5. **Pits.** Each stated pit's `excavationVolume`, the ground it digs under the stripped surface, and its `topsoilVolume`, the topsoil stripped over its extent, each as a print of IFC 4.3 draws them, its corners in chords within 1 mm of their arcs (Part XIX, 6, and 9, rules 7 and 8), where the project's excavation states its slope and its working space. Each derived pit's too, after the stated pits, named by its element ([Part XIX, 6.1](https://openeik.org/spec/0.7/ground#6.1) and [9.1](https://openeik.org/spec/0.7/ground#9.1)); in a model of 0.5, with the proposal `derivedPits`. From 0.7, and in a model of 0.6 with the proposal `pitSides`, a pit that states its own sides is dug by them ([Part XIX, 6.3](https://openeik.org/spec/0.7/ground#6.3) and [9.2](https://openeik.org/spec/0.7/ground#9.2)).
6. **A cut list** is Part XX, 7, rule 2's schedule, its counts in `count`, its lengths in m and its areas in m².

*Note (informative).* Where pits meet, stated or derived, each pit's `excavationVolume` and `topsoilVolume` are an allocation the print makes of the ground they dig together, each cell to one pit (Part XIX, 9, rule 7, and 9.1, rule 3), not a quantity of the pit: the total of the pits that meet is the quantity. Tools allocate otherwise, and give the pits that meet other volumes; their totals agree.

## 8. A method of measurement

1. **A project MAY state** the method of measurement its quantities are taken by for a contract: `project.quantities`, `{method}`, the method's name as its publisher names it, with its edition, 1 to 200 characters, held to [`schemas/0.6/project/quantities.schema.json`](https://openeik.org/schemas/0.6/project/quantities.schema.json). The standard holds no method's text and lists none, and nothing reads the name but an application that knows the method.
2. **The quantities stay base quantities.** No quantity of section 5 changes with a stated method. An application that measures by it derives its own quantities from these and from the records, keeps them in its own folder (Part VI, 8), and names the method in them.
3. **The command** `project.quantities`, `{kind, quantities, expectedQuantities?}`, sets the project's quantities, or clears them with `null`, held to [`commands/project.quantities.schema.json`](https://openeik.org/schemas/0.6/commands/project.quantities.schema.json). Where `expectedQuantities` is given, the project's quantities as read, `null` where it stated none, it is refused where they changed since (`state-conflict`, Part V, 3); in an envelope it is its precondition (Part XVII, 9).

## 9. Reading them

1. **A host** that holds a model of 0.6, or of 0.5 with the proposal, answers `query`'s `sum` (Part VII, 1) with the quantities of this part: each summed name of section 5 the elements the filter keeps have, `{value, unit, of}`, `of` how many of them have it. `length` it sums within one category (section 2, rule 3): where the elements that have it are of more than one, its sum is `{unit, of, byCategory}`, with no value, `byCategory` each category's `{value, unit, of}`, as a wall's length in plan, a pipe's along its line and a bar set's over every bar are not added. It gives an element's quantities beside its record in a full read (Part VII, 3.1), its layers' left out. A dimension is not summed.
2. **A command processor** reads none: no quantity is a precondition, a target or a value a command writes.

## 10. IFC

1. **Base quantities.** A bridge that prints a model of 0.6, or of 0.5 with the proposal, writes, on each product it prints for an element, the element's quantities that its class's base quantity set holds, in an IfcElementQuantity named that set, its MethodOfMeasurement `BaseQuantities`, each under IFC's name:

    | Class | Set | Quantities, this part's name: IFC's |
    |---|---|---|
    | IfcWall | `Qto_WallBaseQuantities` | `length`: Length, `thickness`: Width, `grossSideArea`: GrossSideArea, `netSideArea`: NetSideArea, `grossVolume`: GrossVolume, `netVolume`: NetVolume, `netMass`: NetWeight |
    | IfcSlab | `Qto_SlabBaseQuantities` | `thickness`: Width, `perimeter`: Perimeter, `grossArea`: GrossArea, `netArea`: NetArea, `grossVolume`: GrossVolume, `netVolume`: NetVolume, `netMass`: NetWeight |
    | IfcFooting | `Qto_FootingBaseQuantities` | `thickness`: Height, `grossVolume`: GrossVolume, `netVolume`: NetVolume, `netMass`: NetWeight |
    | IfcCovering | `Qto_CoveringBaseQuantities` | `thickness`: Width, `grossArea`: GrossArea, `netArea`: NetArea |
    | IfcRoof | `Qto_RoofBaseQuantities` | `grossArea`: GrossArea, `netArea`: NetArea, `projectedArea`: ProjectedArea |
    | IfcColumn, IfcBeam, IfcMember | `Qto_ColumnBaseQuantities`, `Qto_BeamBaseQuantities`, `Qto_MemberBaseQuantities` | `length`: Length, `crossSectionArea`: CrossSectionArea, `grossVolume`: GrossVolume, `netVolume`: NetVolume, `netMass`: NetWeight |
    | IfcDoor, IfcWindow | `Qto_DoorBaseQuantities`, `Qto_WindowBaseQuantities` | `width`: Width, `height`: Height, `perimeter`: Perimeter, `area`: Area |
    | IfcRailing | `Qto_RailingBaseQuantities` | `length`: Length |
    | IfcOpeningElement, an opening that nothing fills (from 0.7, section 5.16) | `Qto_OpeningElementBaseQuantities` | `width`: Width, `height`: Height, `area`: Area |
    | IfcPipeSegment, IfcDuctSegment, IfcCableCarrierSegment, IfcCableSegment | `Qto_PipeSegmentBaseQuantities`, `Qto_DuctSegmentBaseQuantities`, `Qto_CableCarrierSegmentBaseQuantities`, `Qto_CableSegmentBaseQuantities` | `length`: Length |
    | IfcReinforcingBar | `Qto_ReinforcingElementBaseQuantities` | `barCount`: Count, `length`: Length, `netMass`: Weight |

2. **Units.** Each is the IfcPhysicalSimpleQuantity of its kind, in the print's units: a length an IfcQuantityLength in its unit of length, the millimetre (Part VIII, 1); an area an IfcQuantityArea in m²; a volume an IfcQuantityVolume in m³; a mass an IfcQuantityWeight in kg, the print's unit assignment then holding the kilogram; and a count an IfcQuantityCount.
3. **The others** are in the bridge's own set, an IfcElementQuantity named `OpenEik_Quantities`, its MethodOfMeasurement `OpenEik`, each under this part's name; and each layer's quantities in it as an IfcPhysicalComplexQuantity named by the layer's id, its Discrimination `layer`. A print of IFC 4.3, whose Reference View has no complex quantity (Part VIII, 1.13), writes no layer's, and its fidelity report says so (`layer quantities`).
4. **Their GlobalIds** are derived from `qto:<id>:<set>`, and their relations' from `qto-rel:<id>:<set>` (Part VIII, 1, rule 3).
5. **What stays.** A space's `Qto_SpaceBaseQuantities` (Part VIII, 1; Part IV, 7.5), a stratum's and the earthworks' (Part XIX, 9; Part VIII, 1.12) are written as before.

buildingSMART's rule QTY001 holds every base quantity set to IFC's own: the bridge of `@openeik/tools` passes it, and the rest of its validation, on the vectors' models printed by this part.

## 11. The one-storey house

[`examples/one-storey-house`](https://gitlab.com/openeik/spec/-/tree/main/examples/one-storey-house), as a model of 0.5, its walls joined at their corners and tees (Part IV, 4.1.1) and their tops attached to the roof's underside (5.3), which lies at `u` = 3050 − 300 / cos 30° = 2703.59 mm over each eave wall's baseline and rises tan 30° a millimetre inwards:

| Element | Quantity | Value | By hand |
|---|---|---|---|
| `wall-south` | `length`, `thickness` | 10 m, 0.3 m | |
| | `grossSideArea` | 27.0359 m² | 10 m × `u`, Part IV, 9's |
| | `netSideArea`, `openingArea` | 23.1359 m², 3.9 m² | less the door, 1.0 × 2.1, and the window, 1.5 × 1.2 |
| | `grossExteriorArea` | 26.9550 m² | 10.3 m to the corners' mitres × (`u` − 0.15 tan 30°) |
| | `netExteriorArea` | 23.0550 m² | less 3.9 m² |
| | `grossInteriorArea` | 26.7858 m² | (9.7 m − 0.1 m where the partition runs in) × (`u` + 0.15 tan 30°) |
| | `grossVolume`, `netVolume` | 8.1040 m³, 6.9340 m³ | the gross less 0.3 m × 3.9 m² |
| | layer `render`: `netArea`, `netVolume` | 23.0619 m², 0.4612 m³ | its volume over its 20 mm |
| | `netMass` | 7227.66 kg | render and masonry 1600, mineral wool 30, plasterboard 900 kg/m³ |
| `wall-east` (gable) | `grossExteriorArea` | 26.7958 m² | 7.3 m × `u` + tan 30° × (3.5² − 0.15²) m², to its ridge |
| `wall-partition` | `netExteriorArea`, `netInteriorArea` | 25.2572 m² each | 6.73 m × `u` + tan 30° × (3.5² − 0.135²) m², core face to core face |
| `slab-ground` | `grossArea`, `netArea`, `projectedArea` | 75.19 m² | 10.3 m × 7.3 m |
| | `perimeter`, `thickness` | 35.2 m, 0.45 m | |
| | `netVolume` | 33.8355 m³ | Part IV, 9's |
| | `netMass` | 37 895.76 kg | 7.519 × 2300 + 15.038 × 20 + 11.2785 × 1800 |
| `roof-main` | `grossArea`, `netArea` | 95.4706 m² | 10.6 m × 7.8 m / cos 30° |
| | `projectedArea` | 82.68 m² | 10.6 m × 7.8 m |
| | `ridgeLength`, `hipLength` | 10.6 m, 0 m | |
| | `netVolume` | 28.6412 m³ | its sloped area by its 300 mm |
| `door-entrance` | `width`, `height`, `area`, `perimeter` | 1 m, 2.1 m, 2.1 m², 6.2 m | |
| type `type-wall-exterior-300` | `count`, `length`, `netSideArea` | 4, 34 m, 100.3671 m² | its four walls' |

Its walls' net volumes are the compiler's vector of the example's (Part IV, 10), and every value here is the vector `XXI-5-the-one-storey-house`'s (section 12).

## 12. Conformance

1. **A compiler** of 0.6, and one of 0.5 that applies this part, derives the quantities of section 5 by its rules, within Part IV, 10, rule 6's tolerances, a mass as a volume is. The vectors of `conformance/compiler/` whose names begin `XXI-` are compiled by this part, and give each element's quantities by this part's names, each `{value, unit}` in `m`, `m2`, `m3`, `kg` or `count`, and each layer's under `layers` by its id, by their names; their values are worked out by hand from this part's rules (Part IV, 10, rule 2).
2. **A validator** of 0.6, and one of 0.5 that applies this part, holds a project's `quantities` to its schema (section 8, rule 1); one of 0.5 without it reports it as a member the schema does not know (Part I, 10).
3. **A host and a bridge** of 0.6, and those of 0.5 that apply it, do as sections 9 and 10 say.

*Note (informative).* `@openeik/tools` derives the quantities with `compileModel(model)` of a model of 0.6, and `compileModel(model, {proposals: ["quantities"]})` of one of 0.5, beside the compiler's own `quantities` of 0.5, as `typedQuantities`, and `quantitiesOf(model)` gives them with each type's and the lists of section 7; `derivedLayer` writes them, `readDerived(…, {proposals})` reads them, the agent host sums them, and `ifcOfModel` prints them. The gross quantities are the compile of `strippedOf(model)`, which adds the time of a second compile of each element's bodies.

## 13. What 0.5 called them (informative)

The compiler of 0.5 names its quantities as Part IV, 9 reports them. With this part an element's are named so:

| 0.5 | This part |
|---|---|
| `volume` | `netVolume`, and `grossVolume` the same without the doors, windows, voids and shafts |
| `layers`, each a volume | `layers`, each layer's quantities, its `netVolume` among them |
| a wall's `grossArea`, `netArea`, `openingArea` | `grossSideArea`, `netSideArea`, `openingArea` |
| a slab's `area`, `slopedArea` | `projectedArea`, `netArea` |
| a roof's `slopedArea`, `planArea`, `ridge`, `hips` | `netArea`, `projectedArea`, `ridgeLength`, `hipLength` |
| a railing's `posts`, a bar set's `count` | `postCount`, `barCount` (a set's without legs too) |
| a slab edge element's or a slab's `pieces`, `cast`, `zone` | `pieceCount`, `castVolume`, `zoneVolume` |
| a terrain's `cut`, `fill` | `cutVolume`, `fillVolume` |
| a room's eight, and `length`, `cutLength` | the same |

## 14. The decisions

The steward chose this part's subject on 6 November 2026, "Mängder (Recommended)", and its shape is the editors' (question 126): the names, IFC's where IFC has one; metres, square metres, cubic metres and kilograms, the records staying in millimetres; gross as the net of the model without what cuts the element; a layer's area as its volume over its thickness; the result's form; the lists; and the print. Four choices of what is built and measured were the steward's, and question 144 asked them; each is written as the editors recommended it, and the steward decided every one so on 6 November 2026, "Ja, alla (Recommended)":

| | Choice | Written |
|---|---|---|
| 1 | Which openings a net quantity takes out | every one, whatever its size (section 3, rule 3) |
| 2 | Whether a project may set its own thresholds | no: it names its method, and the base quantities stay (section 8) |
| 3 | Whether one element's quantities give way to another's where they overlap | no: each counts its own bodies (section 3, rule 4) |
| 4 | A bar's mass where its material gives no density | 7850 kg/m³ (section 4, rule 4) |

### 14.1 The second reading

An analysis application read this part, and the quantities `@openeik/tools` derives by it, on 9 November 2026, and found where the two disagreed with each other or with themselves. The editors settled each on the same day (question 126), where it was a choice as the steward's choices above point: what is measured is the bodies, every rule a quantity names is a rule of this part, a schedule's first quantities are whole, and nothing is a value no rule gives (open questions, 144).

| | Found | Settled |
|---|---|---|
| 1 | A member's gross volume was square-ended (5.3, rule 3), and its net volume ran on to the member it is butted against: a beam of 3.7 m gave 0.074 m³ gross and 0.078 m³ net | its gross volume keeps its joins, as section 3, rule 2 says of every gross quantity (5.3, rule 3) |
| 2 | A foundation under a stair's shaft lost the shaft's prism from its volume but not from its area: 16 m² net, 5.25 m³ of 5.6 m³ | its net area loses the shafts that cut it, and only a stair's shafts cut a foundation (3, rule 1; 5.2, rule 2) |
| 3 | A framed layer was massed as solid timber: 2.893 m³ at 450 kg/m³, 1302 kg, where its studs and plates are 0.567 m³, 255 kg | a layer laid out in members is its members' mass (4, rule 5) |
| 4 | A bar set given by its shape and its count, without legs, had no quantity, and the bars by diameter left it out | its bars are its count, from its records alone (5.12, rule 1); the lists say how many sets give each sum (7, rule 3) |
| 5 | A bar's material's density won over 7850 kg/m³: the U of four 10 mm bars of the vector `XXI-5.12-bar-sets`, of a steel of 7800 kg/m³, weighed 2.4714 kg, where its nominal mass, at 7850 kg/m³, is 2.4872 kg | a bar set's mass is its nominal mass, unless its material is of a category other than steel (4, rule 4) |
| 6 | Rules written as `XXI.5.10.1`, which section 5.10 did not number, and every mass as `XXI.4.1`, a layered one too | sections 5.5, 5.9, 5.10 and 5.14 numbered, and each mass names its own rule of section 4 |
| 7 | `length` summed across categories: a wall's in plan, a run's in 3D, a bar set's over every bar; and a type's sums with no count of the elements in them | `length` summed within one category (2, rule 3; 9, rule 1); a type's sums say how many elements give them (7, rule 1) |
| 8 | A value under 0 written as 0 | left out and said (2, rule 4) |
| 9 | A slab edge element had no mass, though its section and its facing name their materials | its section's and its facing's (4, rule 6) |
| 10 | The result's schema tied no name to its unit, required no basis or rule, and held no count to a whole number | it does, for a result whose rule names this part (6, rule 2) |
