Added CNC mill and drill project configuration, scripts and examples
This commit is contained in:
18
examples/CNC_mill_drill_from_KiCad/export.sh
Executable file
18
examples/CNC_mill_drill_from_KiCad/export.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
filename=$(basename -- "$1")
|
||||
filename="${filename%.*}"
|
||||
|
||||
kicad-cli pcb export gerbers -o output -l B.Cu $1
|
||||
kicad-cli pcb export gerbers -o output -l Edge.Cuts $1
|
||||
kicad-cli pcb export drill -o output $1
|
||||
|
||||
mkdir -p gcode
|
||||
|
||||
docker run --rm -i -t -v ".:/data" ptodorov/pcb2gcode \
|
||||
--back="output/$filename-B_Cu.gbl" \
|
||||
--drill="output/$filename.drl" \
|
||||
--outline="output/$filename-Edge_Cuts.gm1"
|
||||
|
||||
Reference in New Issue
Block a user