support for .GBP files

This commit is contained in:
andreika-git 2022-12-08 17:56:11 +02:00
parent 1928efcfd7
commit f848ce2010
2 changed files with 5 additions and 1 deletions

View File

@ -62,7 +62,7 @@ mkdir_p(dst_path)
# copy gerbers # copy gerbers
print ("Reading gerbers from " + src_name + "*.*") 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: for g in gerbers:
copied = False copied = False
gl = g.lower() gl = g.lower()
@ -86,6 +86,8 @@ for g in gerbers:
if not copied: if not copied:
if (g == ".DRL"): if (g == ".DRL"):
print ("* Skipping Drill for " + name + "...") print ("* Skipping Drill for " + name + "...")
elif (g == ".GBP"):
print ("* Skipping Bottom Paste for " + name + "...")
elif (g == ".G2" or g == ".G3"): elif (g == ".G2" or g == ".G3"):
print ("* Skipping Internal Layer " + g + " for " + name + "...") print ("* Skipping Internal Layer " + g + " for " + name + "...")
else: else:

View File

@ -91,6 +91,8 @@ def print_module(name, prefixPath, moduleName, fileName, isBoard, isBottom):
"*Keepout=%(prefix)s.GKO", "*Keepout=%(prefix)s.GKO",
"Drills=%(prefix)s.DRL", "Drills=%(prefix)s.DRL",
"drillspth=%(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): if ((os.path.isfile(prefix + ".G1") and os.path.isfile(prefix + ".G2")) or isBoard == 1):
write_lines(file, [ write_lines(file, [
"*InnerLayer2=%(prefix)s.G1", "*InnerLayer2=%(prefix)s.G1",