diff --git a/src/faebryk/exporters/pcb/kicad/transformer.py b/src/faebryk/exporters/pcb/kicad/transformer.py index 1ecfe4c7..d430e369 100644 --- a/src/faebryk/exporters/pcb/kicad/transformer.py +++ b/src/faebryk/exporters/pcb/kicad/transformer.py @@ -533,7 +533,7 @@ def insert_via( self.pcb.vias.append( Via( at=C_xy(*coord), - size=C_wh(size_drill[0], size_drill[0]), + size=size_drill[0], drill=size_drill[1], layers=["F.Cu", "B.Cu"], net=net, diff --git a/src/faebryk/libs/kicad/fileformats.py b/src/faebryk/libs/kicad/fileformats.py index a6e25501..e19ceeb3 100644 --- a/src/faebryk/libs/kicad/fileformats.py +++ b/src/faebryk/libs/kicad/fileformats.py @@ -622,6 +622,7 @@ class C_pts: class C_footprint: class E_attr(SymEnum): smd = auto() + dnp = auto() board_only = auto() through_hole = auto() exclude_from_pos_files = auto() @@ -884,7 +885,7 @@ class C_net: @dataclass class C_via: at: C_xy - size: C_wh + size: float drill: float net: int uuid: UUID @@ -962,6 +963,9 @@ class E_keepout_bool(SymEnum): @dataclass(kw_only=True) class C_filled_polygon: layer: str + island: Optional[bool] = field( + **sexp_field(positional=True), default=None + ) pts: C_polygon.C_pts net: int