MitjaNemec / PlaceFootprints

GNU General Public License v2.0
25 stars 5 forks source link

Not picking all similar components #17

Open Juvar1 opened 1 year ago

Juvar1 commented 1 year ago

First it didn't work but as I'm a programmer too I fixed it with following changes to file action_place_footprints.py. I have KiCAD 7. Problem was that plugin didn't picked all similar components. I have them 216 pieces on board.

fp_references = [ref_fp_ref]
for sheet in sheets_to_place:
    for fp in footprints_with_same_id:
        if "/".join(sheet) in "/".join(fp.sheet_id):
            fp_references.append(fp.ref)
            #break # <--- commented out

# remove duplicates NEW
fp_references = list(set(fp_references))
MitjaNemec commented 1 year ago

Thanks for reporting. Can you be a bit more verbose? What kind of design do you have? Can you maybe share your project? I'd like to understand your issue.