Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix position file output error in KiCAD 8.0 #19

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

fairkid-ai
Copy link

@fairkid-ai fairkid-ai commented Feb 5, 2025

Due to API changes in KiCAD 8.0, the following changes must be made to comply with it.

  1. footprint GetProperties() -> GetFields()
  2. footprint GetOrientation() -> GetOrientationDegrees()
  3. org_pt = pcbnew.VECTOR2I(org_pt.x, org_pt.y)

The changes keep compatibility to old versions.

Note that this patch only fixes position file output whereas the Gerber output still has errors in KiCAD 8.0.

Additional push:
Eventually, I removed the last error blockage in kicad cause I did not know what alternative function in 8.0 can help, as follows:

- popt.SetExcludeEdgeLayer(True)
+ if hasattr(popt, "SetExcludeEdgeLayer"):
+   popt.SetExcludeEdgeLayer(True)

The plugin eventually works in KiCAD 8.0.
Anyone find an alternative solution to exclude the edge layer in KiCAD 8.0, please pull request. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants