boldport / pcbmode

A printed circuit board design tool with a twist

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gerbers don't appear to generate properly

ChrosDepkin opened this issue · comments

Hi, I've got a design for a board that is more or less complete, and I'm trying to get the gerbers to send it to be manufactured. There seems to be a problem with the gerber for the outline, though.

Various sites I've uploaded it to can't seem to detect the outline properly, though all other parts seems to be okay. JLCPCB, for example, says "Can not identify the board outline", and various other sites seem to have much the same problem.

I've simplified the outline down to a rectangle, though that hasn't solved the problem.
The outline is defined in the main json as:
"outline": { "shape": { "type": "path", "value": "M -57.099998,-182 H 57.099998 V 182 H -57.099998 V -182 Z" } },
And in the output gerber as:

G04 leading zeros omitted (L); absolute data (A); 6 integer digits and 6 fractional digits *
%FSLAX66Y66*%

G04 mode (MO): millimeters (MM) *
%MOMM*%

G04 Aperture definitions *
%ADD10C,0.001X*%
%ADD11C,0.001X*%
%ADD20C,0.05X*%

%LPD*%
D20*
G01X0000000Y-0000000D02*
G01X114199996Y-0000000D01*
G01X114199996Y-364000000D01*
G01X0000000Y-364000000D01*
G01X0000000Y-0000000D01*
G04 end of program *
M02*

I tried a couple of other boards available here and they seem to have the same problem. Does anyone know what the issue is? I don't know if it's relevant, but I can't seem to use the extract command on this board, I get the error "AttributeError: 'NoneType' object has no attribute 'get'"

Please let me know if you need any other info or would like any files.

Sounds like issue #50

Add an additional point in your JSON/SVG to connect the end of the path to the beginning.

FWIW Oshpark's gerber renderer is pretty good at displaying the outline path, and only fills it in if watertight