Kuzyatech has a post on how to use DipTrace with OSH Park. It covers Design Rule Check and exporting of files.
Based on that post, I made the following batch file to automate the renaming of files after export.
Based on that post, I made the following batch file to automate the renaming of files after export.
@echo off
if "%1" == "" goto error
mkdir OSHPARK
copy Top.gbr "OSHPARK\%1.GTL"
copy Bottom.gbr "OSHPARK\%1.GBL"
copy TopMask.gbr "OSHPARK\%1.GTS"
copy BottomMask.gbr "OSHPARK\%1.GBS"
copy TopSilk.gbr "OSHPARK\%1.GTO"
copy BottomSilk.gbr "OSHPARK\%1.GBO"
copy BoardOutline.gbr "OSHPARK\%1.GKO"
copy Through.drl "OSHPARK\%1.XLN"
@echo on
@echo now go zip up the OSHPARK directory
:end
@exit /b
:error
@echo diptrace2oshpark ProjectName
if "%1" == "" goto error
mkdir OSHPARK
copy Top.gbr "OSHPARK\%1.GTL"
copy Bottom.gbr "OSHPARK\%1.GBL"
copy TopMask.gbr "OSHPARK\%1.GTS"
copy BottomMask.gbr "OSHPARK\%1.GBS"
copy TopSilk.gbr "OSHPARK\%1.GTO"
copy BottomSilk.gbr "OSHPARK\%1.GBO"
copy BoardOutline.gbr "OSHPARK\%1.GKO"
copy Through.drl "OSHPARK\%1.XLN"
@echo on
@echo now go zip up the OSHPARK directory
:end
@exit /b
:error
@echo diptrace2oshpark ProjectName
| diptrace2oshpark.cmd |
To use:
1. Export files per Kuzyatech's post, but skip the renaming, and let DipTrace name the files as it wishes. Make sure all the files get saved to the same folder.
2. Copy batch script into same folder.
3. From the command shell, execute the script in its new location, giving it your project name as an argument. For example:
1. Export files per Kuzyatech's post, but skip the renaming, and let DipTrace name the files as it wishes. Make sure all the files get saved to the same folder.
2. Copy batch script into same folder.
3. From the command shell, execute the script in its new location, giving it your project name as an argument. For example:
C:\ExportedFiles> diptrace2oshpark MyPCB
4. There will be a new subfolder named OSHPARK that has the files that OSH Park requires, renamed appropriately.
5. From inside the OSHPARK folder, zip the files into a zip file named after your project. To verify, look inside the zip file and make sure that all the files are at the top level.
6. Submit zip file to OSH Park.
5. From inside the OSHPARK folder, zip the files into a zip file named after your project. To verify, look inside the zip file and make sure that all the files are at the top level.
6. Submit zip file to OSH Park.
RSS Feed