family_materialize
Build a complete variant family from one design table, generating each part by recipe and assigning item and sequential part numbers in instances or configurations modes.
Instructions
Materialize a whole variant family from ONE design table (issue #138, B1) — "make all the gears" becomes a table, not a loop. For each row, in table order, builds the part with its recipe (A1, #136) and allocates one item + one sequential part number (C1, #140). Subsumes standard-part catalogs: a bearing catalog is a family table keyed by designation, sourced from the ISO corpus.
Two modes (both supported): "instances" (each variant its own released file + part number) and "configurations" (variants share one artifact). Builds into the active document. Returns {schema, family, recipe, mode, key, count, rows, registry}.
table: path to the family table (.csv or .json). registry: optional items.json path (created if absent, written back). mode: optional override of the table's mode (instances|configurations).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | ||
| table | Yes | ||
| registry | No |