Move BOM Group into separate KiBot file
All checks were successful
KiBot CI / test (push) Successful in 30s

This commit is contained in:
2026-03-10 17:59:06 -07:00
parent 99d7feab4e
commit f060645431
2 changed files with 103 additions and 30 deletions

View File

@@ -0,0 +1,99 @@
# KiBot BOM Output Group
kibot:
version: 1
groups:
- name: bom
outputs:
- @NAME_CSV_BOM_OUTPUT@
- @NAME_HTML_BOM_OUTPUT@
- @NAME_HTML_IBOM_OUTPUT@
outputs:
- name: @NAME_CSV_BOM_OUTPUT@
comment: Bill of Materials in CSV format
type: bom
category: '@DIR@'
dir: '@DIR@'
options:
format: CSV
csv:
hide_pcb_info: true
hide_stats_info: true
group_fields: ['@MPN_FIELD@', '@IPN_FIELD@', 'Value']
columns:
- "Row"
- "Quantity Per PCB"
- "References"
- "Value"
- "Datasheet"
- "Footprint"
- "Description"
- "@IPN_FIELD@"
- "@MFG_FIELD@"
- "@MPN_FIELD@"
- "LCSC"
- name: @NAME_HTML_BOM_OUTPUT@
comment: Bill of Materials in HTML format
type: bom
category: '@DIR@'
dir: '@DIR@'
options:
format: HTML
html:
title: 'Bill of Materials'
datasheet_as_link: "Datasheet"
lcsc_link: true
logo: false
style: modern-blue
group_fields: ['@MPN_FIELD@', '@IPN_FIELD@', 'Value']
columns:
- "Row"
- "Quantity Per PCB"
- "References"
- "Value"
- "Datasheet"
- "Footprint"
- "Description"
- "@IPN_FIELD@"
- "@MFG_FIELD@"
- "@MPN_FIELD@"
- "LCSC"
- name: @NAME_HTML_IBOM_OUTPUT@
comment: Interactive Bill of Materials in HTML Format
type: ibom
dir: '@DIR@'
category: '@DIR@'
options:
# extra_data_file: '%F.net'
dark_mode: true
show_fields: 'Value,Footprint,@IPN_FIELD@,@MPN_FIELD@'
group_fields: 'Value,@IPN_FIELD@,@MPN_FIELD@'
show_fabrication: true
highlight_pin1: "selected"
exclude_filter: '@EXCLUDE_FILTER@'
hide_excluded: true
forced_name: '@IBOM_TITLE@'
mark_when_checked: 'Placed'
...
definitions:
# Output Directory
DIR: +manufacturing/assembly
# Output Names
NAME_CSV_BOM_OUTPUT: csv_bom
NAME_HTML_BOM_OUTPUT: html_bom
NAME_HTML_IBOM_OUTPUT: html_bom_interactive
# BOM Configuration
IPN_FIELD: 'Asymworks IPN'
MFG_FIELD: 'Manufacturer PN'
MPN_FIELD: 'Manufacturer'
IBOM_TITLE: ''
EXCLUDE_FILTER: exclude_testpoints

View File

@@ -49,15 +49,6 @@ groups:
# Output Sub-Groups ========================================================
# Bill of Material Outputs -------------------------------------------------
- name: bom
outputs:
- @CSV_BOM_OUTPUT@
- @HTML_BOM_OUTPUT@
- @HTML_IBOM_OUTPUT@
# PCB 3d Model Outputs -----------------------------------------------------
- name: models
outputs:
@@ -207,29 +198,12 @@ import:
SHEET_WKS: @SHEET_WKS_SCH@
# Bills of Materials (BOMs) ------------------------------------------------
- file: kibot_out_csv_bom.yaml
- file: kibot_grp_bom.yaml
definitions:
NAME: @CSV_BOM_OUTPUT@
COMMENT: Bill of Materials in CSV format
DIR: @ASSEMBLY_DIR@
IPN_FIELD: @IPN_FIELD@
MPN_FIELD: @MPN_FIELD@
MAN_FIELD: @MAN_FIELD@
- file: kibot_out_html_bom.yaml
definitions:
NAME: @HTML_BOM_OUTPUT@
COMMENT: Bill of Materials in HTML format
DIR: @ASSEMBLY_DIR@
IPN_FIELD: @IPN_FIELD@
MPN_FIELD: @MPN_FIELD@
MAN_FIELD: @MAN_FIELD@
- file: kibot_out_html_ibom.yaml
definitions:
NAME: @HTML_IBOM_OUTPUT@
COMMENT: Bill of Materials in HTML format
DIR: @ASSEMBLY_DIR@
NAME_CSV_BOM_OUTPUT: @CSV_BOM_OUTPUT@
NAME_HTML_BOM_OUTPUT: @HTML_BOM_OUTPUT@
NAME_HTML_IBOM_OUTPUT: @HTML_IBOM_OUTPUT@
IPN_FIELD: @IPN_FIELD@
MPN_FIELD: @MPN_FIELD@
MAN_FIELD: @MAN_FIELD@