yaqwsx / KiKit

Automation tools for KiCAD
https://yaqwsx.github.io/KiKit
MIT License
1.49k stars 200 forks source link

OpenPNP ignore footprints not in pos file #692

Closed lifeisafractal closed 3 months ago

lifeisafractal commented 3 months ago

The naturalComponentKey() method will fail on non-annotated footprints (i.e. REF***). This can happens when adding a graphical footprint in the PCB without it being in the schematic (which will commonly be marked as Not In schematic and Exclude from position file).

This commit ignores footprints that are excluded from the position file as they will have no bearing on the OpenPNP pos file process, and they might cause the process to fail for the reasons explained above.

This also adds a system test for this. This adds a non-annotated graphic footprint in one of the existing test resource projects.

lifeisafractal commented 3 months ago

I accidentally closed #691. This one should be ready to go now.

yaqwsx commented 3 months ago

Thank you for your contribution.