GerbView: Incorrect scaling of EXCELLON drill file (lp:#1754121)
Original report created by Aimylios (aimylios)
This might be a PEBCAK instead of a bug, but I'll report it anyway because
I could not find any information about this specific issue. I can reproduce
it with recent builds of KiCad on both Windows and Linux.
I do have an EXCELLON drill file that was generated with Altium Designer
and has the following file header:
M48
;Layer_Color=9474304
;FILE_FORMAT=2:5
INCH,LZ
;TYPE=PLATED
I can open this file in GerbView, but the scaling is not correct. The size
of the individual drills is OK, but the x and y positions are scaled by a
factor of 10, i.e. if the correct position of a drill is x=0.1in y=0.1in
GerbView shows it at x=1.0in y=1.0in. The corresponding GERBER files do not
have this issue.
Interestingly, the format information in the upper toolbar says "fmt: in
X2.4 Y2.4 no TZ" (see attached screenshot), but it should be X2.5 Y2.5
according to the file header. The GERBER files are correctly identified as
"fmt: in X2.5 Y2.5 no LZ".
Unfortunately I can not share the whole file, but I have extracted a small
part of it that should be sufficient to demonstrate the problem.
--------------------
Version information:
Application: kicad
Version: (5.0.0-rc2-dev-70-g2da7199a3), release build
Libraries:
wxWidgets 3.0.3
libcurl/7.54.1 OpenSSL/1.0.2l zlib/1.2.11 libssh2/1.8.0 nghttp2/1.23.1
librtmp/2.3
Platform: Windows 7 (build 7601, Service Pack 1), 64-bit edition, 64 bit,
Little endian, wxMSW
Build Info:
wxWidgets: 3.0.3 (wchar_t,wx containers,compatible with 2.8)
Boost: 1.60.0
Curl: 7.54.1
Compiler: GCC 7.1.0 with C++ ABI 1011
Build settings:
USE_WX_GRAPHICS_CONTEXT=OFF
USE_WX_OVERLAY=OFF
KICAD_SCRIPTING=ON
KICAD_SCRIPTING_MODULES=ON
KICAD_SCRIPTING_WXPYTHON=ON
KICAD_SCRIPTING_ACTION_MENU=ON
BUILD_GITHUB_PLUGIN=ON
KICAD_USE_OCE=ON
KICAD_SPICE=ON
Original tags: gerbview