Skip to content

Commit

Permalink
adding checking of references
Browse files Browse the repository at this point in the history
  • Loading branch information
snhobbs committed Sep 14, 2024
1 parent 9f141e8 commit 03cba34
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libs/kicad-addon-metadata
Submodule kicad-addon-metadata updated from d4ba28 to 4e8f41
2 changes: 1 addition & 1 deletion src/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.1.9"
__version__ = "0.1.10"
10 changes: 10 additions & 0 deletions src/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,16 @@ def on_submit(self, _):
)
return

missing_refs = kicad_parts_placer_.get_missing_references(board, components_df)
if len(missing_refs):
msg = f"References not found on board: {', '.join(missing_refs)}"
wx.MessageBox(
msg,
"Error",
wx.OK | wx.ICON_ERROR,
)
return

board = kicad_parts_placer_.place_parts(
board, components_df=components_df, origin=origin
)
Expand Down

0 comments on commit 03cba34

Please sign in to comment.