ingobecker / pcb-msla

Convert PCB gerber files into elegoo mars/photon files.
GNU General Public License v3.0
4 stars 2 forks source link

Confusion about .drl .gbr and .GTL #1

Open itsyoshio opened 3 years ago

itsyoshio commented 3 years ago

Hi there,

i have a Gerber Project i downloaded from EASYEDA Community. The Files come in a Zip and Split into .GBL and .DRL files.

I'm running the following command : pcb-msla convert -e 540 [FILE] esp32.cbddlp

I tried running the Gerber_Drill_PTH.DRL through it (renamed to Drill.drl) , even though its probably not what i want.
I'm greeted with

#$ python ~/.local/bin/pcb-msla convert Drill.drl esp32.cbddlp
TypeError: 'NoneType' object is not subscriptable

If i just rename my Gerber_TopLayer.GTL to TopLayer.drl (changed FileEnding to from .GTL to .drl) and run it with this File, i do get an Output :

#$ python ~/.local/bin/pcb-msla convert Drill.drl esp32.cbddlp

Creating esp32.cbddlp...
PCB dimensions: 29.97 x 57.91 mm       

However the File is Blank.

pcb.png

I bundled all the Files in a neat .zip if you choose to look at this. Gerber.zip Otherwise just go ahead and close / delete this Issue.

I assume the confusion is born from me not having enough Knowledge on the Topic.

ingobecker commented 3 years ago

Thanks for the feedback. First of all, there is a problem with pyphotonfile, the library that this tool uses for parsing and generating cbddlp files. As it turns out, pyphotonfile is only capable of parsing/generating .photon files which are a subset of .cbddlp files. I'm currently rewriting the parser/generator of the pyphotonfile library so it can handle .cbddlp files.

Aside from that, you should be able to generate some kind of file that shows more than a white square. First of all rename your copper layers so that they end with .gbr i.e. TopLayer.grb. Make sure you rename your drill file from Drill.drl to TopLayer.drl as pcb-msla currently assumes the drill file is named like the files containing the copper layer. Make also sure both files are located in the same directory. With everything in place, run the following command: $ pcb-msla convert TopLayer.gbr esp32.cbddlp.

I will have a look at the ziped files later to make sure they work on my machine. By the way, how did you generate the image you posted above?

ingobecker commented 3 years ago

I'm also working on a YouTube video which explains the usage of this tool in more detail. But i don't want to release the video as long as pyphotonfile is broken. I hope, once the video is released things will be a bit easier to understand.