# Gerber export configuration

**URL:** <https://forum.fritzing.org/t/gerber-export-configuration/24717>\
**Category:** advanced\
**Created:** [August 24, 2024, 12:12pm UTC](https://forum.fritzing.org/t/gerber-export-configuration/24717 "2024-08-24T12:12:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![TRST](https://forum.fritzing.org/letter_avatar_proxy/v4/letter/t/49beb7/32.png) [@TRST](https://forum.fritzing.org/u/TRST)\
**Post date:** [August 24, 2024, 12:12pm UTC](https://forum.fritzing.org/t/gerber-export-configuration/24717/1 "2024-08-24T12:12:11Z")

</div>

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:

```auto
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:

```auto
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

---

<div class="post-metadata">

**Author:** ![vanepp](https://forum.fritzing.org/user_avatar/forum.fritzing.org/vanepp/32/4426_2.png) [@vanepp](https://forum.fritzing.org/u/vanepp)\
**Post date:** [August 24, 2024, 2:04pm UTC](https://forum.fritzing.org/t/gerber-export-configuration/24717/2 "2024-08-24T14:04:53Z")

</div>

Your best bet is to open an issue here:

> **[Issues · fritzing/fritzing-app](https://github.com/fritzing/fritzing-app/issues)**
>
> Fritzing desktop application. Contribute to fritzing/fritzing-app development by creating an account on GitHub.

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

Peter

---

<div class="post-metadata">

**Author:** ![TRST](https://forum.fritzing.org/letter_avatar_proxy/v4/letter/t/49beb7/32.png) [@TRST](https://forum.fritzing.org/u/TRST)\
**Post date:** [August 24, 2024, 6:37pm UTC](https://forum.fritzing.org/t/gerber-export-configuration/24717/3 "2024-08-24T18:37:11Z")

</div>

Thank you Peter,  
For your clear answers as always.

I reported the bug 👍🏻  
Hope they fix it🤞

---

<div class="post-metadata">

**Author:** ![vanepp](https://forum.fritzing.org/user_avatar/forum.fritzing.org/vanepp/32/4426_2.png) [@vanepp](https://forum.fritzing.org/u/vanepp)\
**Post date:** [August 24, 2024, 6:41pm UTC](https://forum.fritzing.org/t/gerber-export-configuration/24717/4 "2024-08-24T18:41:37Z")

</div>

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
