diff --git a/spatial/providers/kicad_board.py b/spatial/providers/kicad_board.py index 9acc714..9dff44f 100644 --- a/spatial/providers/kicad_board.py +++ b/spatial/providers/kicad_board.py @@ -30,8 +30,10 @@ def _pads(board): def _ref(pad) -> str: + """Footprint reference. ``GetParent()`` returns a container, not a footprint + (measured on KiCad 10.0.6), so the accessor is ``GetParentFootprint``.""" try: - return pad.GetParent().GetReference() + return pad.GetParentFootprint().GetReference() except Exception: return "?"