Sheet: Extract Data
data_extractExport bill of materials data to a CSV or XLSX file. Supports layer filtering, column selection, and grouping; rejects invalid formats or missing dependencies.
Instructions
The same rows bom_extract returns, written to a file.
Refusals: a format that is not 'csv' or 'xlsx'; a drawing with nothing to
itemise (nothing is written); and fmt='xlsx' without openpyxl, which
carries capability: "xlsx_write" and names both the package to install
and the CSV route that always works.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fmt | No | 'csv' (always available) or 'xlsx' (needs openpyxl). | csv |
| path | Yes | File to write, ending .csv or .xlsx. | |
| layer | No | Only read INSERTs on this layer; empty reads all. | |
| columns | No | ||
| group_by | No | Group identical parts by this field, or ''. | designation |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||