Skip to content

make pcb work with v8 files#13

Open
ddffnn wants to merge 1 commit intopsychogenic:mainfrom
ddffnn:v8-fixes
Open

make pcb work with v8 files#13
ddffnn wants to merge 1 commit intopsychogenic:mainfrom
ddffnn:v8-fixes

Conversation

@ddffnn
Copy link

@ddffnn ddffnn commented Dec 4, 2024

Stepping through the debugger I was able to get PCB to work with v8 files by making these changes. I have not testing all functionality. In fact, all I've done is move some footprints.

relates to #7

@andrewkenny
Copy link

Does the schematics work with V8?

When I get some time at work I may end up working on a V8 project with this.

@ddffnn
Copy link
Author

ddffnn commented Jan 6, 2025

Everything I've done in a version 8 schematic worked, but again, it wasn't much. Also, it looks like there are some bugs with the changes in this PR. Specifically, when I move a footprint some layers don't move. If I go through and update the footprint from the library the rest of the footprint comes along. I can probably dig in more if you'd like.

@andrewkenny
Copy link

It will be some time before I get the chance to play with this. Its a side project at work which i don't seem to get the chance to work on annoyingly.

But to be fair, working on it would help both of us out by the sounds of it.

@salfter
Copy link

salfter commented Apr 24, 2025

Does the schematics work with V8?

The schematic side of things appears to work just fine with v9 in my thus far limited experience, so I'd expect v8 would work too.

I just knocked together a PKGBUILD for the current release and checked it into AUR today. I might take a stab at integrating the patch above into it.

@salfter
Copy link

salfter commented Apr 24, 2025

...and it's now up, and it appears to load PCBs:

https://aur.archlinux.org/packages/python-kicad-skip

rgb-led-matrix-scripted.kicad_pcb.gz

When I try to enumerate the footprints within the attached PCB, though, the references (all 576 of them, in this case) appear to have been dropped on the floor somewhere. A similar enumeration of symbols within the schematic shows all references.

I'm fairly new to kicad-skip, so just to be clear, this is what I tried using to enumerate footprints and symbols:

import skip

pcb=skip.PCB("rgb-led-matrix-scripted.kicad_pcb")
pcb.footprint

sch=skip.Schematic("rgb-led-matrix-scripted.kicad_sch")
sch.symbol

I just installed KiCad 7 and added a resistor to a new project. Tested against an unpatched kicad-skip, the footprint is enumerated properly. The patch breaks compatibility with KiCad 7 (I get AttributeError(f"Unknown element {key}") at line 284 in skip/collection.py) and doesn't appear to fully work with KiCad 8 or 9.

archlinux-github pushed a commit to archlinux/aur that referenced this pull request May 12, 2025
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.

3 participants