DIaLOGIKa-GmbH / kicad-coil-creator

Generates PCB coils for KiCad
GNU Affero General Public License v3.0
13 stars 2 forks source link

Vias in Footprint #5

Closed TimGoll closed 3 months ago

TimGoll commented 3 months ago

Vias seem to be impossible to be placed inside a footprint. Right now we use through holes as a replacement, however they lack solder resist covering. The following change might fix this:

@@ -44,7 +44,7 @@ def via(loc: P2D, diameter: float, drill: float) -> str:
        Returns:
                str: the via, formatted for use in the footprint file
        """
-       via = f'  (pad "" thru_hole circle (at {loc}) (size {diameter} {diameter}) (drill {drill}) (layers *.Cu *.Mask) ({tstamp()}))\n'
+       via = f'  (pad "" thru_hole circle (at {loc}) (size {diameter} {diameter}) (drill {drill}) (layers *.Cu) ({tstamp()}))\n'
        return via