12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- #!/bin/bash
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- cd "$(dirname "$0")"
-
- OUTDIR="plot"
- LAYER="F.Cu,B.Cu,F.Mask,B.Mask,F.Paste,B.Paste,F.Silkscreen,B.Silkscreen,Edge.Cuts,User.Drawings"
-
- rm -rf $OUTDIR
- mkdir -p $OUTDIR
-
- for VAR in pdf svg
- do
- echo "Exporting schematic $VAR"
- rm -rf $OUTDIR/dispensy_sch.$VAR
- kicad-cli sch export $VAR \
- -t "KiCad Default" \
- -o $OUTDIR/dispensy_sch.$VAR \
- dispensy.kicad_sch
-
- echo "Exporting board $VAR"
- rm -rf $OUTDIR/dispensy_pcb.$VAR
- kicad-cli pcb export $VAR \
- -t "KiCad Classic" \
- -l $LAYER \
- -o $OUTDIR/dispensy_pcb.$VAR \
- dispensy.kicad_pcb
- echo
- done
-
- echo "Exporting board step file"
- rm -rf $OUTDIR/dispensy_pcb.step
- kicad-cli pcb export step \
- -o $OUTDIR/dispensy_pcb.step \
- dispensy.kicad_pcb
-
- echo "Converting step to 3mf"
- rm -rf $OUTDIR/dispensy_pcb.3mf
- prusa-slicer --export-3mf $OUTDIR/dispensy_pcb.step
-
- echo "Deleting step file"
- rm -rf $OUTDIR/dispensy_pcb.step
|