Electronic – KiCad how to export oval PCB hole as a drill file

drillkicadpadpcb

Using KiCad, is there a way to have a pad with an slot shape (referred to in KiCad as "oval") be exported properly as a drill (.drl) file?
The pad in KiCad looks like Fig. 1 below.

But after exporting the PCB layout to the gerber and drill files, it seems to only process a single round hole, rather than the entire slot/oval, as shown in Fig. 2 (as seen from a separate gerber-viewing program).

I was previously able to work around this problem by modifying the footprint to have multiple smaller circular drills instead of a larger slot/oval one and got it successfully fabricated.
Are there more efficient alternatives?

(Fig. 1: pad in Kicad)
Pad in KiCad

(Fig. 2: exported pad in gerber viewer)
Pad in gerber viewer

Best Answer

Round holes in the board are made using drill bits in an automatic machine that pokes at the board with a spinny thing,

The DRL file gives the locations and sizes for theses holes. if you make two holes overlap there's a large risk that the drill bit will break so that is against the rules.

slots are made using milling bits in an automatic machine that pokes at the board with a spinny thing and then drags the spinning cutter along a defined path.

2mm is the diameter of the cutter usually used so slots narrower than 2mm, or with corner radiuses less than 1mm may cost extra. Smaller cutterrs are available but because they are more easily broken the cuiting speed is reduced, and because time is money you will pay for that.

PCBWAY asks for the slots to be included on the "Board Outline" Gerber layer, check with your chosen manufacturer on how they want slots presented.

Sometimes you don't need slots, eg CUI makes a 5.5x2.5mm jack with "round" pins, intead of flat tabs.