Gerber export configuration

Hi all,

The gerbers exported by Fritzing seem to use a different amount of decimals for different files.
For example, here is a very simple copper top and associated drill file.

Copper top:

G04 This is an RS-274x file exported by *
G04 gerbv version 2.10.0-rc.1~19b8ba *
G04 More information is available about gerbv at *
G04 https://gerbv.github.io/ *
G04 --End of header info--*
%MOIN*%
%FSLAX36Y36*%
%IPPOS*%
G04 --Define apertures--*
%ADD10C,0.0748*%
%ADD11C,0.0866*%
G04 --Start main section--*
G54D10*
G01X0822000Y1822000D03*
G54D11*
G01X1022000Y1822000D03*
M02*

Drill:

M48
INCH,TZ
T10C0.063
%
T10
X010222Y018222
X008222Y018222
M30

As you can see, the coordinates in the drill file seem to have less digits.

Unfortunatly this difference is causing issues in the software I use to print the boards.
Manually editing the drill files by adding two 00’s after each coordinate fixes the issue but is very cumbersome. I could write a script that would do it… but this is also not ideal.

If possible, I would like to configure the gerber exporter to handle this. Does anyone have any experience with this? Know where I could get started?

Regards,

Marten

Your best bet is to open an issue here:

as this very likely needs a code change. AFIIK there are no gerber output user settable parameters.

Peter

Thank you Peter,
For your clear answers as always.

I reported the bug :+1:t2:
Hope they fix it🤞

In theory (but possibly not in practice, gerber processing is complex) the fix should be fairly easy just adjust the number of emitted digits. I guess we will see if that is true or the situation is much more complex (which unfortunately is entirely possible!)

Peter