realthunder / fcad_pcb

FreeCAD scripts for PCB CAD/CAM
MIT License
126 stars 25 forks source link

makeZones doesn't find a layer in kicad v5.1 #45

Closed easyw closed 2 years ago

easyw commented 2 years ago

Hi @realthunder here a minimal sample for a board with fill zones that are not built if the pcb is in kicad v5.1 format

The same board saved in kicad v6 format, will build zones.

I'm using these commands: pcb = kicad.KicadFcad(filename) pcb.setLayer('F.Cu') pcb.makeZones(shape_type='face',thickness=0.05, fit_arcs=True,holes=True)

the same issue for layer B.Cu the warning message is no layers specified (the same issue if I invoke the command pcb.makeCoppers(holes=True) ) here the two boards: FillZones-minimal-test-1-kv5.zip FillZones-minimal-test-1-kv6.zip

easyw commented 2 years ago

@realthunder many thanks as always :smile: