diff --git a/__init__.py b/__init__.py index c907142..f9ed5f4 100644 --- a/__init__.py +++ b/__init__.py @@ -134,7 +134,7 @@ def defaults(self): def Run(self): board = pcbnew.GetBoard() - modules = board.GetModules() + modules = board.GetFootprints() fn = Path(board.GetFileName()).with_suffix("") diff --git a/bom2jlc.py b/bom2jlc.py index 362027e..f775db5 100755 --- a/bom2jlc.py +++ b/bom2jlc.py @@ -13,7 +13,7 @@ def parse_pcb(fn): pcb_fn = str(Path(fn).with_suffix("")) + ".kicad_pcb" board = pcbnew.LoadBoard(pcb_fn) - modules = board.GetModules() + modules = board.GetFootprints() for mod in modules: ref = mod.GetReference()