There is an Issue with multiple footprints with the same reference, which is possible in KiCAD....
It results in multiple identical filenames inside the zip-file:
In the import step, the duplicates are beeing ignored.
My suggestion would be to add the footprint-idx to the filename, e.g. like name = f"{value}_{reference}_{j}.{i}" with j, footprint in enumerate(board.Footprints()) in export.py:
Another problem is, that I have 2 footprints for one model, which is not an ideal design strategy - but it is as it is... The footprints 30,31 and 34, 35 share the same model. This causes missing pads, because has_model is false for 30 and 34.
I think there is not a real solution for it, except to add a configuration to disable the has_model filter
There is an Issue with multiple footprints with the same reference, which is possible in KiCAD.... It results in multiple identical filenames inside the zip-file:
In the import step, the duplicates are beeing ignored. My suggestion would be to add the footprint-idx to the filename, e.g. like
name = f"{value}_{reference}_{j}.{i}"
withj, footprint in enumerate(board.Footprints())
inexport.py
:Another problem is, that I have 2 footprints for one model, which is not an ideal design strategy - but it is as it is... The footprints 30,31 and 34, 35 share the same model. This causes missing pads, because
has_model
is false for 30 and 34. I think there is not a real solution for it, except to add a configuration to disable thehas_model
filter