-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[HOW] Produktion Information and layer stackup #368
Comments
Hi @MarkusSBS !
Here is the full example: Reports are customizable, so you can add more information, rearrange it, etc. # Example KiBot config file
kibot:
version: 1
global:
solder_mask_color_top: blue
solder_mask_color_bottom: red
pcb_finish: ENIG
copper_thickness: "35"
outputs:
- name: 'report_simple'
comment: "Simple design report"
type: report
output_id: _simple
options:
template: simple
- name: 'print_front'
comment: "Top copper and silkscreen"
type: pcb_print
dir: Layers
output_id: -front
options:
title: 'Fake title for front copper and silk (%f)'
pages:
- scaling: 2.0
layers:
- layer: F.Cu
- layer: F.SilkS
- layer: Edge.Cuts
- name: 'print_bottom'
comment: "Bottom copper and silkscreen"
type: pcb_print
dir: Layers
output_id: -bottom
options:
title: 'Fake title for bottom copper and silk'
pages:
- scaling: 2.0
layers:
- layer: B.Cu
- layer: B.SilkS
- layer: Edge.Cuts
- name: 'print_sch_svg'
comment: "Schematic"
type: svg_sch_print
dir: .
options:
output: Schematic.svg
- name: 'report_full'
comment: "Full design report"
type: report
dir: report
options:
do_convert: true Note that it used the PDFs from the |
Ah what i mean was to print this infomation Inside of a WKS and include it in the printout not generating a dynamic WKS. I will try your example if it fits my needs i think its basicly what i want |
report does what I want but the usage is not obvious. Is there a best practise to injekt a template for it into the docker container and is there a information how to fix the layout like font and text possiton/white spaces? |
Hi @MarkusSBS !
Put the file in your repo, you always need access to your repo. This is the same for any other file used by KiBot.
Consult the PanDoc documentation. What KiBot actually generates is a markdown file. PanDoc is used to convert the markdown into some nice PDF file. The big margins looks normal to me. |
/usr/local/lib/python3.9/dist-packages/kibot/resources/report_templates/ is this the only folder that is checkt for a template? are there other search path or is it possible to specify a search path? like /root/.local/share/kicad/6.0/template/ |
Hi @MarkusSBS ! P.S: you can even use an absolute path, or ~/... |
is there a special syntax to use Text Vars inside the pandoc template? Or do i need to define them first? My current test:
|
Hi @MarkusSBS ! I tested it using the kibot:
version: 1
preflight:
set_text_variables:
- name: PROJECT
text: Test project
- name: SAP
text: XYZ
- name: AUTHOR
text: Juan de los palotes
- name: date
command: 'git log -1 --format="%as" -- "$KIBOT_PCB_NAME"'
- name: git_hash
command: 'git log -1 --format="%h" "$KIBOT_PCB_NAME"'
before: 'Git hash: <'
after: '>'
- name: gh
command: 'git log -1 --format="%h" "$KIBOT_PCB_NAME"'
outputs:
- name: 'report_vars'
comment: "Various variables"
type: report
options:
template: tests/data/report_vars.txt
I got them expanded. Which pandoc format supports the title and other YAML stuff? |
and it just worked |
i have testet it with setsoft/kicad_auto_test:dev_k6 and it works |
can be closed for now |
Related to this: KiCad 7 now supports:
|
Ok, now is possible to insert the above tables using KiCad and keep them synced using two new preflights |
To draw a nice stackup with all the information Related to #368
Hallo
But is it possible to Generate a Layer Stackup, Produktion Details or Reports with information Kicad already has with a wks frame?
For example:
or the DRC ERC output
(Realy nice soulution would be including Kicad data into Latex to have nice formated reports)
The text was updated successfully, but these errors were encountered: