Using batch generate.sh

To make steps described in the section called “Generate g-code file for drilling”, the section called “Generate top and bottom g-code files for milling”, the section called “Generate top and bottom g-code files for solder mask hardening” and the section called “Using batch generate.sh” at once, there is a batch command generate.sh.

                                
./generate.sh examples/niveaDice/niveaDice.fpc

                            

Output:

./fpcconvert.sh -c examples/niveaDice/fpcconvert.conf -xr examples/niveaDice/niveaDice.fpc -fgcode -o examples/niveaDice/niveaDice.bot.dri.ngc -lbottom
setting config file to examples/niveaDice/fpcconvert.conf

Warning: zero thickness for connection (4 -> 3), segment 1, net N000022 
Warning: zero thickness for connection (2 -> 1), segment 1, net N000003 
Warning: zero thickness for connection (3 -> 1), segment 1, net N000004 
so library loaded, turbo GPC mode will be used
./fpcconvert.sh -c examples/niveaDice/fpcconvert.conf -r examples/niveaDice/niveaDice.fpc -fgcode -o examples/niveaDice/niveaDice.top.dri.ngc -lbottom
setting config file to examples/niveaDice/fpcconvert.conf

Warning: zero thickness for connection (4 -> 3), segment 1, net N000022 
Warning: zero thickness for connection (2 -> 1), segment 1, net N000003 
Warning: zero thickness for connection (3 -> 1), segment 1, net N000004 
so library loaded, turbo GPC mode will be used
./fpcconvert.sh -c examples/niveaDice/fpcconvert.conf -xm examples/niveaDice/niveaDice.fpc -fgcode -o examples/niveaDice/niveaDice.bot.ngc -lbottom
setting config file to examples/niveaDice/fpcconvert.conf

Warning: zero thickness for connection (4 -> 3), segment 1, net N000022 
Warning: zero thickness for connection (2 -> 1), segment 1, net N000003 
Warning: zero thickness for connection (3 -> 1), segment 1, net N000004 
so library loaded, turbo GPC mode will be used
./fpcconvert.sh -c examples/niveaDice/fpcconvert.conf -m examples/niveaDice/niveaDice.fpc -fgcode -o examples/niveaDice/niveaDice.top.ngc -ltop
setting config file to examples/niveaDice/fpcconvert.conf

Warning: zero thickness for connection (4 -> 3), segment 1, net N000022 
Warning: zero thickness for connection (2 -> 1), segment 1, net N000003 
Warning: zero thickness for connection (3 -> 1), segment 1, net N000004 
so library loaded, turbo GPC mode will be used
creating fpcconvert.sm.conf in examples/niveaDice
./fpcconvert.sh -c examples/niveaDice/fpcconvert.sm.conf -xm examples/niveaDice/niveaDice.fpc -fgcode -o examples/niveaDice/niveaDice.bot.sm.ngc -lbottom
setting config file to examples/niveaDice/fpcconvert.sm.conf

Warning: zero thickness for connection (4 -> 3), segment 1, net N000022 
Warning: zero thickness for connection (2 -> 1), segment 1, net N000003 
Warning: zero thickness for connection (3 -> 1), segment 1, net N000004 
so library loaded, turbo GPC mode will be used
./fpcconvert.sh -c examples/niveaDice/fpcconvert.sm.conf -m examples/niveaDice/niveaDice.fpc -fgcode -o examples/niveaDice/niveaDice.top.sm.ngc -ltop
setting config file to examples/niveaDice/fpcconvert.sm.conf

Warning: zero thickness for connection (4 -> 3), segment 1, net N000022 
Warning: zero thickness for connection (2 -> 1), segment 1, net N000003 
Warning: zero thickness for connection (3 -> 1), segment 1, net N000004 
so library loaded, turbo GPC mode will be used
                            

Note: This batch command is written in bash, so it has been tested in Linux only.