Silkscreen geometry imported from DXF collapses upon saving footprint

Hi! I’m having trouble with footprint editor.
I sketched the outline of the footprint in FreeCAD, saved it as DXF, and imported into KiCad as B.Silkscreen… After a bit of fight, I got it where I wanted. Placed pads, figured out how to change them…

All done, I saved. Then reopened, to find out that silkscreen geometry that I imported is gone. The pads are still in place.

Well, maybe I did it wrong, I thought… Re-imported the dxf, saved, opened - OUCH! no silkscreen yet again.

So I looked into the file, and found out that the geometry is still there! Just it’s collapsed into zero.

(module QP10-6 (layer F.Cu) (tedit 59A74A3A)
  (fp_text reference REF** (at 4.45 2.62) (layer F.SilkS)
    (effects (font (size 1 1) (thickness 0.15)))
  )
  (fp_text value QP10-6 (at 5.12 -2.68) (layer F.Fab)
    (effects (font (size 1 1) (thickness 0.15)))
  )
  (fp_circle (center 0 0) (end 0 0) (layer B.SilkS) (width 0.1))
  (fp_circle (center 0 0) (end 0 0) (layer B.SilkS) (width 0.1))
  (fp_circle (center 0 0) (end 0 0) (layer B.SilkS) (width 0.1))
  (fp_circle (center 0 0) (end 0 0) (layer B.SilkS) (width 0.1))
  (fp_circle (center 0 0) (end 0 0) (layer B.SilkS) (width 0.1))
  (fp_circle (center 0 0) (end 0 0) (layer B.SilkS) (width 0.1))
  (fp_line (start 0 0) (end 0 0) (layer B.SilkS) (width 0.1))
  (fp_circle (center 0 0) (end 0 0) (layer B.SilkS) (width 0.1))
  (fp_circle (center 0 0) (end 0 0) (layer B.SilkS) (width 0.1))
  (fp_circle (center 0 0) (end 0 0) (layer B.SilkS) (width 0.1))
  (fp_circle (center 0 0) (end 0 0) (layer B.SilkS) (width 0.1))
  (fp_circle (center 0 0) (end 0 0) (layer B.SilkS) (width 0.1))
  (fp_circle (center 0 0) (end 0 0) (layer B.SilkS) (width 0.1))
  (fp_line (start 0 0) (end 0 0) (layer B.SilkS) (width 0.1))
  (pad 1 thru_hole circle (at 0.01 -2.54) (size 1.524 1.524) (drill 0.8) (layers F.Cu F.Mask))
  (pad 2 thru_hole circle (at 2.54 -0.01) (size 1.524 1.524) (drill 0.8) (layers F.Cu F.Mask))
  (pad 3 thru_hole circle (at -0.02 2.55) (size 1.524 1.524) (drill 0.8) (layers F.Cu F.Mask))
  (pad 4 thru_hole circle (at -2.53 0) (size 1.524 1.524) (drill 0.8) (layers F.Cu F.Mask))
  (pad 5 thru_hole circle (at -1.78 -1.79) (size 1.524 1.524) (drill 0.8) (layers F.Cu F.Mask))
)

Looks like a bug to me.
I tried attaching the .dxf file here, with no success. I get a message, that new users can’t attach files.
Here are screenshots before and after:

ahh, man, “new users can put only one image per post” =(( sorry, no “after” screenshot then.

and version:

Application: kicad
Version: 4.0.6 release build
wxWidgets: Version 3.0.2 (debug,wchar_t,compiler with C++ ABI 1010,GCC 6.3.0,wx containers,compatible with 2.8)
Platform: Windows 8 (build 9200), 64-bit edition, 64 bit, Little endian, wxMSW
Boost version: 1.60.0
Curl version: libcurl/7.52.1 OpenSSL/1.0.2k zlib/1.2.11 libssh2/1.8.0 nghttp2/1.19.0 librtmp/2.3
         USE_WX_GRAPHICS_CONTEXT=OFF
         USE_WX_OVERLAY=OFF
         KICAD_SCRIPTING=ON
         KICAD_SCRIPTING_MODULES=ON
         KICAD_SCRIPTING_WXPYTHON=ON
         USE_FP_LIB_TABLE=HARD_CODED_ON
         BUILD_GITHUB_PLUGIN=ON

Uploaded the dxf, footprint file, and screenshots to:
https://drive.google.com/drive/folders/0B9lBm-SSD5KSVWVBTWFmUlhIdzQ?usp=sharing

(module RoundCircles (layer F.Cu) (tedit 59A760E7)
(fp_text reference REF** (at 0 0.381) (layer F.SilkS)
(effects (font (size 0.762 0.762) (thickness 0.127)))
)
(fp_text value %R (at 0 -0.381) (layer F.Fab)
(effects (font (size 0.762 0.762) (thickness 0.127)))
)
(fp_line (start -3.81 -4.064) (end 0.181332 -0.072668) (layer F.SilkS) (width 0.1))
(fp_circle (center -1.614719 -1.868719) (end -0.913322 -1.868719) (layer F.SilkS) (width 0.1))
(fp_circle (center -2.358668 -0.072668) (end -1.657271 -0.072668) (layer F.SilkS) (width 0.1))
(fp_circle (center 0.181332 2.467332) (end 0.882729 2.467332) (layer F.SilkS) (width 0.1))
(fp_circle (center 2.721332 -0.072668) (end 3.422729 -0.072668) (layer F.Cu) (width 0.1))
(fp_circle (center 0.181332 -2.612668) (end 0.882729 -2.612668) (layer F.SilkS) (width 0.1))
(fp_circle (center 0.181332 -0.072668) (end 4.781332 -0.072668) (layer F.SilkS) (width 0.1))
)

Hi @DeepSOIC
this is a bug in the Legacy Canvas of kiCad 4.06 (F9)

If you use the GAL canvas you shouldn’t have problems (F11)
QP10-6-GAL.kicad_mod (1.3 KB)

this bug is not present on development release also using Legacy canvas

Maurice

1 Like

Thanks, Maurice!
Using OpenGL viewer helps! However, only in legacy (“Default”) viewer I can use touchscreen to pan. So I’m considering switching to development version.

Oh, by the way, I totally forgot. I have switched to development version, and it’s all working fine in legacy viewer now!

A post was split to a new topic: Silkscreen gerber accidentally misaligned