Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Commit

Permalink
Bug: KiCad: Fileformat: missing island, dnp, via (#43)
Browse files Browse the repository at this point in the history
* Fix: vias only have 1 size value

* Add: DNP footprint attr

* Add: Island bool for filled polygons
  • Loading branch information
ruben-iteng authored Sep 9, 2024
1 parent 1437458 commit d1b9b04
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/faebryk/exporters/pcb/kicad/transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
6 changes: 5 additions & 1 deletion src/faebryk/libs/kicad/fileformats.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d1b9b04

Please sign in to comment.