This is pretty much nonsensical for KiCad. I actually donāt know how this dxf footprint pad import should work, but I can say for sure that KiCad canāt interpret that kind of bunch of lines. A polygon in KiCad must be an unambiguous continuous outline.
IMO this would be easier to create directly in KiCad as a custom pad using straight graphic lines.
There are a couple of construction lines; I deleted those before trying to convert. Your drawing approach is fineā¦ how did you do it? Did you change the pad shape or just add filled regions on the F.Cu plane?
OKā¦ not giving up just yetā¦ so I extruded my shape(s) in Fusion 360 and exported as a STEP file. Iām hoping that somehow I can then go back from the STEP to pads using FreeCAD and the StepUp plugin.TouchPad v13.step (54.5 KB)
They shouldnāt be done like that because then they are not pads. Steps 1ā¦5 are good, but the graphics and the pad which belong together should be combined to one custom pad. It happens by selecting them and using RMB menu -> Create Pad from Selected Shapes.
I do it both ways - I make my PCBās so, I often donāt bother going beyond the minimal I need. And, that should serve as a starting point for othersā¦ Generally, I only do the Pads from graphics if neededā¦ itās an excellent feature!
Unless you need to make a number of different configurations Iāve found its easier to calculate (excel, libracalc) the end points then just put them in by hand.
Not too long ago KiCad did not have the capability to DRC checks on graphics placed on a copper layer, and a hackish way of adding some graphics on a copper layer did work. For some time though (about a year?) KiCad generates DRC violations for track segments and pads that overlap with graphics on a copper layer.
You are of course free to do so in your own projects, but I do not like it if you teach sloppy methods to others.
Combining the graphic shapes with the pads as eelik mentioned is a very small extra step, and without that step KiCad wonāt let you draw a track to the pad, because that would violate DRC.
To OP:
Drawing some graphics, then moving it to F.Cu and combining it with a pad such as described earlier does work. Your graphics are also very simple straight lines, so there is no use in being cleverer then needed, and drawing some lies in KiCad itself is just fine. No need for DXF, or even dragging in 3D.STEP files for this.
An alternative method is to just use a few SMT pads and then overlap them in the Footrpint editor to make a bigger and more complex pad.
If you put graphics on a copper layer, then it will be covered by solder mask, and this is ā¦ not recommended for switches
If you combine multiple SMT pads, then the pads have cutouts in the solder mask, but also in the paste layer, which is also probably not what you want, so you have to disable the paste layer for those pads.
The photograph has a single big square cutout in the solder mask. The recommended way to do this in KiCad is with an āaperture padā. An aperture pad is nothing special, it is just a regular pad, but with the copper layers disabled, and also with the pad number removed. Because it has no pad number, You canāt connect a track to it, and you can use use it for custom shapes on the solder mask and/or solder paste layers. Search KiCads footprint libraries for āThermalā to get examples of this.
Your graphics are also very simple straight lines
They are not; they have rounded ends.
The photograph has a single big square cutout in the solder mask. The recommended way to do this in KiCad is with an āaperture padā.
Thatās interesting. I was assuming that I would draw a square on the solder mask layer.
Iām going to try and do a crash course in FreeCAD. The ability to generate a pad shape from a DXF (or STEP) would be useful for me as I am familar with Fusion 360 for drawing.
I put a square of F.Mask over the pads to open up the area (I couldnāt see how to use Aperture)
I think I have something workable so will move on as I have a design to finish but I think I will return to Kicad StepUp when I have my next fancy requirement.
The only thing I could not establish is the relationship between the KiCad origins and FreeCad origins when taking sketches from different sources and then exporting them to layers back in the PCBā¦ but close enough.