Bouni / kicad-jlcpcb-tools

Plugin to generate BOM + CPL files for JLCPCB, assigning LCSC part numbers directly from the plugin, query the JLCPCB parts database, lookup datasheets and much more.
MIT License
1.16k stars 105 forks source link

Export to schematics does not work with copied components #327

Open gollux opened 1 year ago

gollux commented 1 year ago

I am using this wonderful plugin with KiCad 7.0.6. I noticed that the "Export to schematics" function does not export LCSC numbers for some components. Further investigation uncovered that the problematic components are those which were copied from another schematics. In such cases, KiCad stores component reference (e.g., "U11") for both the original and the current schematics and the plugin probably matches the wrong one.

Bouni commented 1 year ago

@computergeek1507 Could you take a look at this, please?

computergeek1507 commented 1 year ago

@gollux Can you attach a sample project that has this issue?

gollux commented 1 year ago

Here it is: https://mj.ucw.cz/x/07a3b7b4a2989b463cb93a2ddab899ed/test-project.tar.gz