kicad-jlcpcb-tools icon indicating copy to clipboard operation
kicad-jlcpcb-tools copied to clipboard

Export to schematics does not preserve BOM/POS exclude flags

Open gollux opened this issue 1 year ago • 3 comments

I am using this wonderful plugin with KiCad 7.0.6. When I export to schematics, the "Exclude from BOM" and "Exclude from POS" attributes are not exported, so they get overwritten the next time I update the PCB from schematics.

gollux avatar Jul 16 '23 16:07 gollux

True! I ran into this issue as well!

But the plugin is really awesome :-) A game changer!

FantomXR avatar Jul 17 '23 07:07 FantomXR

@computergeek1507 This one is also for you I guess 😅

Bouni avatar Jul 17 '23 10:07 Bouni

Having been bit by this one over and over again, I had a look at what's going on.

The "Exclude from position files" and "Exclude from bill of materials" flags are footprint properties. Even if I were go in and plumb the connection between this tool and eeschema, you'd start having DRC errors in eeschema because the footprint no longer matches what is in the library.

If you're willing to accept that limitation -- meaning you will have to ignore that entire class of errors -- I can proceed, but it's not straightforward. Right now, the schematic exporter only adds the LCSC property to symbols in your schematic. It doesn't touch footprints at all. Adding additional properties to the symbol to represent JLCPCB BOM/POS info is going to be problematic, because the tool already has BOM/POS values in the footprint. Keeping those in sync is going to be a fool's errand.

wohali avatar Feb 14 '24 01:02 wohali