From f848ce2010b1d069c11ee68288a254a15c40f91c Mon Sep 17 00:00:00 2001 From: andreika-git Date: Thu, 8 Dec 2022 17:56:11 +0200 Subject: [PATCH] support for .GBP files --- bin/copy_from_Kicad.py | 4 +++- bin/process_board.py | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/copy_from_Kicad.py b/bin/copy_from_Kicad.py index d5594d8..ac8ed61 100644 --- a/bin/copy_from_Kicad.py +++ b/bin/copy_from_Kicad.py @@ -62,7 +62,7 @@ mkdir_p(dst_path) # copy gerbers print ("Reading gerbers from " + src_name + "*.*") -gerbers = [ ".GTL", ".GTO", ".GTP", ".GTS", ".GBL", ".GBO", ".GBS", ".GM1", ".G2", ".G3", ".DRL"] +gerbers = [ ".GTL", ".GTO", ".GTP", ".GTS", ".GBL", ".GBO", ".GBS", ".GBP", ".GM1", ".G2", ".G3", ".DRL"] for g in gerbers: copied = False gl = g.lower() @@ -86,6 +86,8 @@ for g in gerbers: if not copied: if (g == ".DRL"): print ("* Skipping Drill for " + name + "...") + elif (g == ".GBP"): + print ("* Skipping Bottom Paste for " + name + "...") elif (g == ".G2" or g == ".G3"): print ("* Skipping Internal Layer " + g + " for " + name + "...") else: diff --git a/bin/process_board.py b/bin/process_board.py index 83e8750..cb98e0e 100644 --- a/bin/process_board.py +++ b/bin/process_board.py @@ -91,6 +91,8 @@ def print_module(name, prefixPath, moduleName, fileName, isBoard, isBottom): "*Keepout=%(prefix)s.GKO", "Drills=%(prefix)s.DRL", "drillspth=%(prefix)s.DRL"]) + if ((os.path.isfile(prefix + ".GBP")): + write_lines(file, "*" + bottom + "SolderPasteMask=%(prefix)s.GBP") if ((os.path.isfile(prefix + ".G1") and os.path.isfile(prefix + ".G2")) or isBoard == 1): write_lines(file, [ "*InnerLayer2=%(prefix)s.G1",