Skip to content

Commit

Permalink
Fix via, arc detection in kicad nightly
Browse files Browse the repository at this point in the history
VIAs were renamed to PCB_VIA
ARCs to PCB_ARC

Fixes #264
  • Loading branch information
qu1ck committed Jul 26, 2021
1 parent 16b5f87 commit de62198
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions InteractiveHtmlBom/ecad/kicad.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ def parse_footprints(self):
def parse_tracks(self, tracks):
result = {pcbnew.F_Cu: [], pcbnew.B_Cu: []}
for track in tracks:
if track.GetClass() == "VIA":
if track.GetClass() in ["VIA", "PCB_VIA"]:
track_dict = {
"start": self.normalize(track.GetStart()),
"end": self.normalize(track.GetEnd()),
Expand All @@ -434,7 +434,7 @@ def parse_tracks(self, tracks):
result[layer].append(track_dict)
else:
if track.GetLayer() in [pcbnew.F_Cu, pcbnew.B_Cu]:
if track.GetClass() == "ARC":
if track.GetClass() in ["ARC", "PCB_ARC"]:
a1 = round(track.GetArcAngleStart() * 0.1, 2)
a2 = round((track.GetArcAngleStart() +
track.GetAngle()) * 0.1, 2)
Expand Down
2 changes: 1 addition & 1 deletion InteractiveHtmlBom/web/ibom.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
--pad-hole-color: #CCCCCC;
--pad-color-highlight: #D04040;
--pad-color-highlight-both: #D0D040;
--pad-color-highlight-marked: #67cc67;
--pad-color-highlight-marked: #44a344;
--pin1-outline-color: #ffb629;
--pin1-outline-color-highlight: #ffb629;
--pin1-outline-color-highlight-both: #fcbb39;
Expand Down

0 comments on commit de62198

Please sign in to comment.