From 9a90b522c5ee632c7b8b9ad8b2f420bb278b3484 Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Tue, 12 Apr 2022 09:00:06 -0300 Subject: [PATCH] Fixed the name of the layer used to print KiCad 6 frame --- kibot/out_pcb_print.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/kibot/out_pcb_print.py b/kibot/out_pcb_print.py index c850363f..c8d68c3f 100644 --- a/kibot/out_pcb_print.py +++ b/kibot/out_pcb_print.py @@ -29,6 +29,15 @@ logger = log.get_logger() SVG2PDF = 'rsvg-convert' +# - Fix get_targets (multiple files) +# - Implement other rsvg-convert formats +# - Use PyPDF2 for pdfunite +# - Implement pad, vias, etc colors +# - Allow hole color config +# - move(1,1)? Really needed? 0,0? +# - Analyze KiCad 6 long delay + + def _run_command(cmd): logger.debug('Executing: '+str(cmd)) try: @@ -333,12 +342,13 @@ class PCB_PrintOptions(VariantOptions): g.SetLayer(self.cleared_layer) def plot_frame_ki6(self, pc, po, p): - """ KiCad 6 can plot the frame because it loads the worksheet format """ + """ KiCad 6 can plot the frame because it loads the worksheet format. + But not the one from the project, just a default """ self.clear_layer('Edge.Cuts') po.SetPlotFrameRef(True) po.SetScale(1.0) po.SetNegative(False) - pc.SetLayer(self.edge_layer) + pc.SetLayer(self.cleared_layer) pc.OpenPlotfile('frame', PLOT_FORMAT_SVG, p.sheet) pc.PlotLayer() self.restore_layer()