Skip to content

Commit

Permalink
generate jlcpcb positioning file
Browse files Browse the repository at this point in the history
  • Loading branch information
vroland committed Nov 9, 2023
1 parent 69e39f1 commit 8acc988
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ build/boards/%: $$*/$$(notdir $$*).kicad_pcb $$*/$$(notdir $$*).kicad_sch
xsltproc -o $@_BoM.csv present/bom2grouped_csv_jlcpcb.xsl $@_BoM.xml
#
kicad-cli pcb export pos $< --side front --format csv --units mm -o $@_top_pos.csv
sed -e '1 s/Ref/Designator/' -e '1 s/PosX/Mid X/' -e '1 s/PosY/Mid Y/' -e '1 s/Rot/Rotation/' -e '1 s/Side/Layer/' $@_top_pos.csv > $@_pos_jlcpcb.csv
kicad-cli pcb export step --subst-models $< -o $@_model.step
xz $@_model.step
touch $@
Expand Down
1 change: 1 addition & 0 deletions present/template/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ <h3>Downloads:</h3>
<li><a href="build/boards/{{this.name}}_BoM.csv">{{this.name}} BoM (csv)</a></li>
<li><a href="build/boards/{{this.name}}_BoM.xml">{{this.name}} BoM (xml)</a></li>
<li><a href="build/boards/{{this.name}}_top_pos.csv">{{this.name}} Part Positioning</a></li>
<li><a href="build/boards/{{this.name}}_pos_jlcpcb.csv">{{this.name}} JLCPCB Part Positioning</a></li>
<li><a href="build/boards/{{this.name}}_schematic.pdf">{{this.name}} Schematic (PDF)</a></li>
<li><a href="build/boards/{{this.name}}_model.step.xz">{{this.name}} 3D Model (STEP)</a></li>
</ul>
Expand Down

0 comments on commit 8acc988

Please sign in to comment.