# plan-state.json

> Ein Planstand: seine Dateien und ihre Transformationen.

Quelle: https://bauzertifikate.de/docs/bzf/schemas/plan-state · BZF 0.3.0 (https://github.com/bauzertifikate/bzf/tree/fe92cf4342f2e9140f14f66262c2f5a30a99be45) · Weitere Seiten: https://bauzertifikate.de/llms.txt

- **Status:** Entwurf
- **Klasse:** building – Gebäudedaten, Weitergabe nur mit Einwilligung des Eigentümers
- **Ablage:** `Daten/plans/<id>.json`
- **$id:** `https://bauzertifikate.de/schema/bzf/1/plan-state.json`
- **Schema laden:** [/schema/bzf/1/plan-state.json](https://bauzertifikate.de/schema/bzf/1/plan-state.json) (JSON Schema 2020-12)

## Beschreibung

A plan state, `plans/<id>.json`: the files that came together, by their hash, each with its storey and its transform into the frame. A partial update shares the files that didn't change; the folder `Zeichnungen/` holds them under their own names, and this document, not the folder, says what belongs to which state. This schema describes documents of schema version 1.x; a document of another major version is only required to say which.

## Das Dokument

Ein Dokument der Hauptversion 1 (`"schema": "1.x"`) hat die folgenden Felder, die des Typs [`planState`](#planstate). Eine andere Hauptversion muss nur sagen, welche sie ist.

| Feld | Typ | Beschreibung |
|---|---|---|
| `schema` **Pflicht** | [`schemaVersion`](https://bauzertifikate.de/docs/bzf/schemas/common.md#schemaversion) | A document's schema version, major.minor. |
| `id` **Pflicht** | [`id`](https://bauzertifikate.de/docs/bzf/schemas/common.md#id) | An item's identity for life. |
| `label` | `string` | "Planstand 2", "Index b". |
| `from` | `string` | From whom it came. |
| `received` | [`time`](https://bauzertifikate.de/docs/bzf/schemas/common.md#time) | When it came. |
| `note` | `string` | A note. |
| `previous` | [`id`](https://bauzertifikate.de/docs/bzf/schemas/common.md#id) | The plan state it replaces. |
| `files` **Pflicht** | Liste von [`file`](#file) | Its files. |

## Typen

Die Typen dieses Schemas, auf die seine Felder verweisen.

### `planState`

| Feld | Typ | Beschreibung |
|---|---|---|
| `schema` **Pflicht** | [`schemaVersion`](https://bauzertifikate.de/docs/bzf/schemas/common.md#schemaversion) | A document's schema version, major.minor. |
| `id` **Pflicht** | [`id`](https://bauzertifikate.de/docs/bzf/schemas/common.md#id) | An item's identity for life. |
| `label` | `string` | "Planstand 2", "Index b". |
| `from` | `string` | From whom it came. |
| `received` | [`time`](https://bauzertifikate.de/docs/bzf/schemas/common.md#time) | When it came. |
| `note` | `string` | A note. |
| `previous` | [`id`](https://bauzertifikate.de/docs/bzf/schemas/common.md#id) | The plan state it replaces. |
| `files` **Pflicht** | Liste von [`file`](#file) | Its files. |

### `file`

A file of a plan state.

| Feld | Typ | Beschreibung |
|---|---|---|
| `hash` **Pflicht** | [`hash`](https://bauzertifikate.de/docs/bzf/schemas/common.md#hash) | Its content's hash, as the store keeps it. |
| `name` **Pflicht** | `string` | Its name as received: "eg.dwg". |
| `storey` | `string` | The storey it shows, where it shows one ("EG"); a section, an elevation or a site plan shows none. |
| `transform` | [`transform`](#transform) | From a file's coordinates into the frame. |

### `transform`

From a file's coordinates into the frame: scaled to millimetres, turned about its origin, moved. Absent where the file is in the frame's own coordinates.

| Feld | Typ | Beschreibung |
|---|---|---|
| `scale` **Pflicht** | `number` | Millimetres per unit of the source: 1000 for a drawing in metres. (> 0) |
| `rotation` | `number` | Degrees counter-clockwise. Standard: `0` |
| `offset` | Tupel (`number`, `number`) | Then moved by, mm. (mindestens 2 Einträge) Standard: `[0,0]` |
| `height` | `number` | Its heights moved by, mm. Standard: `0` |
| `proposed` | `boolean` | Found automatically and not yet confirmed. Standard: `false` |

## Lesen und prüfen

Die Beschreibungen stammen unverändert aus dem Schema und sind wie die Spezifikation englisch. Jedes Objekt lässt weitere Felder zu (`additionalProperties: true`): Programme bewahren Felder und Werte, die sie nicht kennen. Wie ein Dokument geprüft wird, steht im [Schnellstart](https://bauzertifikate.de/docs/bzf/schnellstart.md#pruefen).
