Excellon drill files are off

Bug #1782053 reported by Piotr Trembecki
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KiCad
Fix Released
Undecided
jean-pierre charras

Bug Description

Hi,

When I generate drill files for PCB house in GerbView it shows way off. Not sure if the generated files are at fault or the problem is at the GerbView.

Way to recreate is to use any board in Pcbnew export Gerber files. Then generate drill files with options:
-File format: Excellon
-Drill Units: Inches
-Zeros Format: Suppress leading zeros
-Drill Map File Format: PostScript
-Excellon Drill File Options: Minimal header
-Drill Origin: absolute

When I check in GerbView the drill holes are way off (dimensions multiplied by 10). When I export in Gerber X2 format it all looks aligned.

Please see attached file with my simple test.

Application: kicad
Version: 5.0.0-fee4fd1~65~ubuntu16.04.1, release build
Libraries:
    wxWidgets 3.0.2
    libcurl/7.47.0 OpenSSL/1.0.2g zlib/1.2.8 libidn/1.32 librtmp/2.3
Platform: Linux 4.4.0-130-generic x86_64, 64 bit, Little endian, wxGTK
Build Info:
    wxWidgets: 3.0.2 (wchar_t,wx containers,compatible with 2.8) GTK+ 2.24
    Boost: 1.58.0
    OpenCASCADE Community Edition: 6.8.0
    Curl: 7.47.0
    Compiler: GCC 5.4.0 with C++ ABI 1009

Build settings:
    USE_WX_GRAPHICS_CONTEXT=OFF
    USE_WX_OVERLAY=OFF
    KICAD_SCRIPTING=ON
    KICAD_SCRIPTING_MODULES=ON
    KICAD_SCRIPTING_WXPYTHON=OFF
    KICAD_SCRIPTING_ACTION_MENU=ON
    BUILD_GITHUB_PLUGIN=ON
    KICAD_USE_OCE=ON
    KICAD_USE_OCC=OFF
    KICAD_SPICE=ON

Revision history for this message
Piotr Trembecki (pinolec) wrote :
Revision history for this message
Aimylios (aimylios) wrote :

I had reported a similar issue a couple of months ago:
https://bugs.launchpad.net/kicad/+bug/1754121

This has been fixed in the meantime, but you seem to have found a new way to trigger this bug.

Revision history for this message
Piotr Trembecki (pinolec) wrote :

Thanks Aimylios.

It seems to be the same problem with GerbView. I've tested drill files on a few different Gerber viewers and they look correct.

The problem with drill files only occurs when files are in imperial units. Tried metrics and metrics are OK.

tags: added: plotting
removed: drill files plot
Revision history for this message
jean-pierre charras (jp-charras) wrote :

Fixed in commit c2915058

Changed in kicad:
status: New → Fix Committed
assignee: nobody → jean-pierre charras (jp-charras)
Revision history for this message
KiCad Janitor (kicad-janitor) wrote :

Fixed in revision c291505830338e23bd7cf7a1a227f484ab15078d
https://git.launchpad.net/kicad/patch/?id=c291505830338e23bd7cf7a1a227f484ab15078d

Changed in kicad:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.