Merge branch 'dev' into 'main'
Fixed up footprint generation for Kicad8 See merge request Micromelon/education/hardware/kicad-ci!2
This commit is contained in:
@@ -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)
|
||||
|
||||
Submodule .scripts/ki-ntree updated: 3ea8d930c5...26ff98818f
Reference in New Issue
Block a user