Skip to content

Commit

Permalink
export.sh should print helpful message if aux_axis_origin is missing fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rusefillc committed Aug 2, 2023
1 parent cc4c99b commit 7678483
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kicad/bin/export.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ kicad-cli pcb export pos --format csv --units mm --use-drill-file-origin --botto
echo Getting Drill/Place origin from PCB
X=$(grep "aux_axis_origin" "$PCB_FILE" | tr -s ' ' | cut -d ' ' -f 3)
Y=$(grep "aux_axis_origin" "$PCB_FILE" | tr -s ' ' | cut -d ' ' -f 4 | tr -d ')')
if [ ! "$Y" ]; then
echo "aux_axis_origin is missing in the PCB file"
exit -1
fi
echo Export VRML using $X $Y
python "$DIR/export-vrml.py" "$PCB_FILE" "$X" "$Y" "gerber/$IN.wrl"

Expand Down

0 comments on commit 7678483

Please sign in to comment.