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

Implement code for basic kicad import #94

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Freshdouble
Copy link

This implements some basic kicad device import function.

The kicad project must assign the part id to each element in the schematic and create the bom. With the bom kicad creates an xml file which contains all the parts on the board and every field from those parts.
The new xml file upload in the "Create device" window accept this xml file and will create a the device with every part in the schematic.

If a part doesn't have a id field, the upload will fail in the current version.

This code is currently experimental and not fully tested with invalid xml files. Only the import of a simple kicad example project was done.

I dont know which branch should contain experimental code so i used the master branch.

@EvansMike
Copy link
Contributor

Works for me, but I commented the
throw new Exception("No ID for part " . $comp["ref"]);
lines so it could skip parts that have no ID field and still successfully create the device, but with missing parts.
Maybe a warning message would be better?

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