Materials Create Stock Format
materials_create_stock_formatDestructive
Add a format your shop buys ("GF 3000 × 1500", or a 6 m bar).
Calculations price with it from today on, beside the standard formats
of its kind you have not hidden. Each kind states its own dimensions —
see kind.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | A short identifier of lowercase letters, digits, `-` and `_`, starting with a letter or digit — unique among your current formats, and kept by every later version of this one. | |
| kind | No | Which purchased stock form this is. A sheet states length_mm and width_mm; a plate adds thickness_mm to its largest size; a bar states length_mm and, optionally, diameter_mm; a tube states length_mm, diameter_mm and wall_mm. | sheet |
| label | Yes | The format's name, e.g. `GF 3000 × 1500`, as calculations and quotes show it. Invisible formatting is removed — direction controls and zero-width characters — and a name with nothing left to read is refused. | |
| wall_mm | No | ||
| width_mm | No | ||
| length_mm | Yes | ||
| diameter_mm | No | ||
| gauge_max_mm | No | ||
| gauge_min_mm | No | ||
| thickness_mm | No | ||
| material_category | No |