30350n / pcb2blender

KiCad to Blender 3D model workflow
GNU General Public License v3.0
546 stars 12 forks source link

Identical footprint references #9

Closed Haschtl closed 1 year ago

Haschtl commented 1 year ago

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: image

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: image

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

30350n commented 1 year ago

Fixed! Thanks a lot, didn't think of that ^^