> ## Documentation Index
> Fetch the complete documentation index at: https://77e2e7e-archee-studio.manicule.dev/llms.txt
> Use this file to discover all available pages before exploring further.
> For every page in one file, fetch https://77e2e7e-archee-studio.manicule.dev/llms-full.txt (large).
> To search and read these docs as tools, connect the MCP server at https://77e2e7e-archee-studio.manicule.dev/api/mcp.
> Every agent surface: https://77e2e7e-archee-studio.manicule.dev/.well-known/llms-manifest.json

# Sheets and reports (/arc/sheets)

<!-- agent-signals: reading_time_min: 2 · est_tokens: 790 · updated: 2026-12-05 -->
Related: [The .arc language](/arc/overview.md), [Syntax](/arc/syntax.md), [Units and expressions](/arc/units.md), [Parts, ports and mates](/arc/parts.md), [Citations](/arc/citations.md), [Diagnostics](/arc/diagnostics.md)

> Declare drawing sheets with paper ids, views, a bill of materials and a title, and assemble reports from parts.

## Sheets

A sheet belongs to a part. It sets the paper, the scale and the views.

```text
sheet a0 landscape {
  scale 1:2
  view top = cut(gbox, through = a1)
  view front = proj(top)
  view side = proj(front, top)
  bom auto
  title from req
}
```

| Line                                               | Meaning                                                        |
| -------------------------------------------------- | -------------------------------------------------------------- |
| `sheet PAPER [landscape or portrait]`              | The sheet and its paper id                                     |
| `scale 1:2`                                        | The drawing scale                                              |
| `view NAME = cut(...)`, `proj(...)`, `detail(...)` | A view of a part, or a projection of another view              |
| `bom auto`                                         | The bill of materials from the assembly's parts, or `bom PATH` |
| `title from PATH` or `title "text"`                | The title block source                                         |

Views are expressions over parts, so a projected view stays aligned with the view it comes from.

## Paper ids

`PAPER` is an id from the paper table, in any case, or a custom `W x H mm`.

| Family | Ids                             | Standard   |
| ------ | ------------------------------- | ---------- |
| ISO A  | `a0` to `a4`                    | ISO 216    |
| ISO B  | `b0` to `b4`                    | ISO 216    |
| ANSI   | `ansi_a` to `ansi_e`            | ASME Y14.1 |
| ARCH   | `arch_a` to `arch_e`, `arch_e1` | ASME Y14.1 |

| Id   | Long side x short side (mm) |
| ---- | --------------------------- |
| `a0` | 1189 x 841                  |
| `a1` | 841 x 594                   |
| `a2` | 594 x 420                   |
| `a3` | 420 x 297                   |
| `a4` | 297 x 210                   |

An unknown id reports `N01` with the nearest ids. The sheet size is data, so the same part moves from A3 to A1 by changing one id.

## Reports

An `artifact` assembles a report, a bill of materials, a quote, a drawing set or a notice.

```text
arc 0.1
use gbox = rec/gbox.arc

artifact report kind report {
  section "1. Chọn thông số trục" {
    prose "Mô men xoắn trên trục II là {gbox.T2:Nm:0}, đường kính sơ bộ {gbox.shaft2.d_min:mm:1}."
  }
  for s in parts(gbox, kind = shaft) {
    section "Trục" {
      prose "Trục {s.name} có d1 = {s.d1}."
      table dims = s.out
    }
  }
  section "Bản vẽ" {
    figure gbox.a0
  }
}
```

* `section "title" { ... }` holds `prose`, `table` and `figure` lines.
* `prose` strings interpolate values: `{path}`, `{path:unit}` and `{path:unit:digits}`.
* `table NAME = PATH` renders the outputs of a part.
* `figure PATH` places a sheet.
* `for s in parts(PATH, kind = KIND)` repeats its sections once per part of that kind. `{s.name}` is the instance name.

A prose section remembers a hash of each value it shows. When the value changes, the section is marked stale (`A02`) so you rewrite it.
