---
title: Materials
summary: Materials and material layers — material.name, color and layerThickness, the classification and properties of a material, the parenthesised multi-material form, filtering, and material.meta.
order: 180
terms: [material]
see-also: [reference/bql/classifications, reference/bql/properties, reference/bql/meta]
---

# Materials

An object's [[term:material|material]] comes from its material association: a single material, a layer set (walls, slabs), a profile set or a constituent set. BQL flattens them to one list of materials per object, each with its own fields.

## Fields {#fields}

| Path | Value |
|---|---|
| `material.name` | The material's `Name`. |
| `material.color` | The surface colour of the material's style, when it has one. |
| `material.layerThickness` | The thickness of the material's layer, for layered elements. |
| `material.classification.<field>` | A classification reference of the material; the fields of [[bql:classifications]]. |
| `material.property.<Pset>.<Name>` | A property of the material, for example `material.property.Pset_MaterialCommon.MassDensity`. |
| `material.*` | Every material with every field. |

```bql {#material-get}
GET qid, attribute.Name, material.name, material.layerThickness WHERE type = IFCWALL
```

Several material fields at once, grouped per material:

```bql {#material-several}
GET qid, material(name, layerThickness, color) WHERE type = IFCSLAB
```

```bql {#material-classification}
GET qid, material.name, material.classification.identity, material.property.Pset_MaterialCommon.MassDensity WHERE type = IFCCOLUMN
```

## In WHERE {#where}

A material condition holds when any of the object's materials matches.

```bql {#material-where}
GET qid, attribute.Name WHERE material.name = "Aluminium"
```

```bql {#material-where-thickness}
GET qid, attribute.Name, material(name, layerThickness) WHERE type = IFCWALL AND material.layerThickness > 200 mm
```

## Distribution {#group}

```bql {#material-group}
GET material.name, COUNT(qid) GROUP BY material.name
```

## material.meta {#meta}

`material.meta` lists which material fields an object has, without the values; selectable only ([[bql:meta]]).

## Used in {#used-in}

- [[page:tutorials/bql/relations]] — materials of walls.
