diff --git a/.scripts/foot_gen.py b/.scripts/foot_gen.py index 330da61..0eed083 100644 --- a/.scripts/foot_gen.py +++ b/.scripts/foot_gen.py @@ -160,7 +160,7 @@ for foot in saved: # sorted_foots.sort(key=lambda foot: foot[0].GetY()) # Export the step file -os.system("kicad-cli pcb export step -f --subst-models --user-origin " + str(ToMM(brd_cent.x)) + "x" + str(ToMM(brd_cent.y)) + "mm -o /tmp/dummy.step " + sys.argv[1]) +os.system("kicad-cli pcb export step -f --no-dnp --subst-models --user-origin " + str(ToMM(brd_cent.x)) + "x" + str(ToMM(brd_cent.y)) + "mm -o /tmp/dummy.step " + sys.argv[1]) # Import the 3d model of the actual PCB dummy = FOOTPRINT(pcb) @@ -258,7 +258,8 @@ for [foot, pad_map] in sorted_foots: # kicad_mod.append(Circle(center=cent_mm, radius=radius, layer='F.Silkscreen', width=0.05)) for d in foot.GraphicalItems(): - if type(d) is pcbnew.FP_SHAPE and "F.Courtyard" in d.GetLayerName(): + print("Type: ", type(d), "Layer: ", d.GetLayerName()) + if type(d) is pcbnew.PCB_SHAPE and "Courtyard" in d.GetLayerName(): shape_type = d.GetShape() cent = d.GetCenter() - brd_cent print("Courtyard: ", cent, shape_type) diff --git a/.scripts/ki-ntree b/.scripts/ki-ntree index 3ea8d93..26ff988 160000 --- a/.scripts/ki-ntree +++ b/.scripts/ki-ntree @@ -1 +1 @@ -Subproject commit 3ea8d930c5cb79c1a143c5fb0134ad2c063a9ee4 +Subproject commit 26ff98818f03b57fa29b7d6d1a3ff301caf7794e