From 3e922b60094d19d9b23983c7e0c5681a72aaf689 Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Thu, 14 Jul 2022 18:52:31 -0300 Subject: [PATCH] [PCB_Print] Fixed problems with filtered/modified PCBs --- CHANGELOG.md | 1 + kibot/out_pcb_print.py | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1244ceb3..e7f35e96 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed - OAR computation (Report) (#225) - Position: Problems when doing manual panelization (repeated references) (#224) +- PCB_Print: Problems with filtered/modified PCBs ## [1.2.0] - 2022-06-15 diff --git a/kibot/out_pcb_print.py b/kibot/out_pcb_print.py index ea74dccd..403ad203 100644 --- a/kibot/out_pcb_print.py +++ b/kibot/out_pcb_print.py @@ -522,7 +522,7 @@ class PCB_PrintOptions(VariantOptions): if len(zones): ZONE_FILLER(GS.board).Fill(zones) # Add it to the list - filelist.append((GS.pcb_basename+"-"+suffix+".svg", self.pad_color)) + filelist.append((pc.GetPlotFileName(), self.pad_color)) def plot_vias(self, la, pc, p, filelist, via_t, via_c): id = la._id @@ -602,7 +602,7 @@ class PCB_PrintOptions(VariantOptions): if len(zones): ZONE_FILLER(GS.board).Fill(zones) # Add it to the list - filelist.append((GS.pcb_basename+"-"+suffix+".svg", via_c)) + filelist.append((pc.GetPlotFileName(), via_c)) def add_frame_images(self, svg, monochrome): if (not self.plot_sheet_reference or not self.frame_plot_mechanism == 'internal' or @@ -937,7 +937,7 @@ class PCB_PrintOptions(VariantOptions): pc.OpenPlotfile(la.suffix, PLOT_FORMAT_SVG, p.sheet) pc.PlotLayer() pc.ClosePlot() - filelist.append((GS.pcb_basename+"-"+la.suffix+".svg", la.color)) + filelist.append((pc.GetPlotFileName(), la.color)) self.plot_extra_cu(id, la, pc, p, filelist) self.plot_realistic_solder_mask(id, temp_dir, filelist[-1][0], filelist[-1][1], p.mirror, p.scaling) # 2) Plot the frame using an empty layer and 1.0 scale