Open konkers opened 11 months ago
I built a rough prototype of this: https://github.com/konkers/Ki-nTree/tree/wip/magic
It drives the category, footprint, and symbol selection from a match file: https://github.com/konkers/Ki-nTree/blob/wip/magic/kintree/config/inventree/magic_settings.yaml
Looks interesting @konkers; Not sure about the magic
name for it - that leaves a lot of room for interpretation to the user.
Disclaimer: This is @eeintech project so my word has 0 sway here (nor should it, I am a newbie at KiCad at best)
Oh yeah, the name magic
is just a stand in. The patch still needs work. Notably the way the detection configuration file is structured, the user version is overwritten by the template data here: https://github.com/sparkmicro/Ki-nTree/blob/main/kintree/config/config_interface.py#L66.
Another issue with the prototype I just found: if one doesn't hit the magic button and instead manually enters the footprint and symbols, they are not added the the InvenTree part. Probably something to do with data_from_views
not getting updated.
Hello @konkers Sorry for the late response. This is super exciting development, I really need to look closer into it. Unfortunately my free time is quite limited right now. If you want to move forward and send a PR, when I get the chance I'll take a look into your implementation.
I also agree with @matmair the name magic
is a bit marketing-ish, a more obvious name would be much better 😃
Hello @konkers now that KiCad v8 is out, did you have time to polish your implementation?
KiCad 8.0 will have (already in
nightly
) HTTP library support (https://docs.kicad.org/master/en/eeschema/eeschema_advanced.html#http-libraries) which with the inventree_kicad plugin (https://github.com/afkiwers/inventree_kicad) allows one to tie InvenTree parts directly to KiCad symbols and footprints. This has the advantage of not creating a descrete/separate KiCad symbol for each passive and instead link them all to their generic version (i.e.Device:R_Small
).It would be great to have a mode for Ki-nTree where it is aware of KiCad but instead of creating KiCad Symbols, instead just populates the
Symbol
andFootprint
field in InvenTree.