115 lines
2.2 KiB
YAML
115 lines
2.2 KiB
YAML
# Example KiPlot config file
|
|
kibot:
|
|
version: 1
|
|
import:
|
|
- file: JLCPCB
|
|
preflight:
|
|
run_erc: true
|
|
update_xml: true
|
|
run_drc: true
|
|
set_text_variables:
|
|
- name: 'rev'
|
|
command: "if [ $(git describe --tags | wc -w) -gt 0 ]; then git describe --tags; else echo $CI_COMMIT_SHORT_SHA; fi"
|
|
- name: 'date'
|
|
expand_kibot_patterns: true
|
|
text: '%D'
|
|
fill_zones: true
|
|
ignore_unconnected: false
|
|
|
|
global:
|
|
environment:
|
|
user_templates: "${CI_PROJECT_DIR}/.templates"
|
|
|
|
outputs:
|
|
- name: 'print_sch'
|
|
comment: "Print schematic (PDF)"
|
|
type: pdf_sch_print
|
|
dir: .
|
|
options:
|
|
output: Schematic.pdf
|
|
|
|
- name: 'print_front'
|
|
comment: "Print F.Cu+Dwgs.User"
|
|
type: pdf_pcb_print
|
|
dir: .
|
|
options:
|
|
output_name: PCB_Top.pdf
|
|
layers:
|
|
- 'copper'
|
|
- layer: F.SilkS
|
|
|
|
- name: 'bom'
|
|
comment: "BOM in csv format"
|
|
type: bom
|
|
dir: .
|
|
options:
|
|
columns:
|
|
- field: Value
|
|
name: Query
|
|
- field: Quantity Per PCB
|
|
name: Qty
|
|
- Description
|
|
- mpn
|
|
- manf
|
|
- field: References
|
|
name: Schematic Reference
|
|
csv:
|
|
hide_pcb_info: true
|
|
hide_stats_info: true
|
|
format: "CSV"
|
|
|
|
- name: 'drill'
|
|
comment: "excellon drill files"
|
|
type: excellon
|
|
dir: Gerbers
|
|
# options:
|
|
|
|
- name: 'step'
|
|
comment: "Step file of pcb"
|
|
type: step
|
|
dir: .
|
|
options:
|
|
output: '%f_%r.%x'
|
|
download: false
|
|
subst_models: true
|
|
|
|
- name: 'neo_position'
|
|
comment: "Pick and place"
|
|
type: position
|
|
options:
|
|
output: '%f_cpl.%x'
|
|
format: CSV
|
|
units: millimeters
|
|
separate_files_for_front_and_back: false
|
|
only_smd: true
|
|
|
|
- name: 'diff_pcb'
|
|
comment: "Diff for visual comparison"
|
|
type: diff
|
|
dir: .
|
|
options:
|
|
only_different: true
|
|
old: KIBOT_TAG-0
|
|
|
|
- name: 'diff_sch'
|
|
comment: "Diff for visual comparison"
|
|
type: diff
|
|
dir: .
|
|
options:
|
|
only_different: true
|
|
pcb: false
|
|
old: KIBOT_TAG-0
|
|
|
|
groups:
|
|
- name: pcb
|
|
outputs:
|
|
- _JLCPCB_fab
|
|
- neo_position
|
|
- print_front
|
|
|
|
- name: sch
|
|
outputs:
|
|
- bom
|
|
- print_sch
|
|
|