All the Net Class memberships that had been manually set got silently reset to the “Default” membership at some point between routing a board (including successful DRC checks) and doing the final plane fill/gerber generation. This is used for the Design Rules to set trace net class clearances, etc. My problem is my 0.024" clearance rule (and others) was ignored for the plane fill, and my ground plane is now 0.010" (plane clearance setting) from the trace. Huge problem, I may need to scrap the manufactured boards, and they are big.
This has happened on two different separate designs with two different designers using two different computers/operating systems (Ubuntu & Windows). Using KiCAD 4.0.4.
Has anyone else had this problem or seen this happen?
I have not seen this one, but I have a similar problem. I have hade clearance set to 0.007" one time (due to a rounding issue between KiCAD and Netrouting) but now I’m back at 0.008" in every setting I can find, but when pushing wires when routing the distance between pushed wires becomes 0.007"…
Follow-up: The cuplrit is using the KiCAD Python interface (pcbnew).
Basically, this Python causes the problem: import pcbnew pcb = pcbnew.LoadBoard(filename) pcbnew.SaveBoard(fpath, pcb)
We re-sequence the boards’ reference designators using Python. We can replicate the problem of all the nets being lost from the classes by having Python open a *.kicad_pcb file and re-save it. All nets are lost in the classes when re-saving it.
For example, I’ve copy-pasted a pre-resequenced to post-resequenced file:
Original file: