Python demos: fix plot demos according to recent changes in Kicad plot code.
Add also a comment for Gerber plots.
This commit is contained in:
parent
0d369f700f
commit
db90404710
|
@ -57,7 +57,6 @@ popt.SetUseGerberAttributes(True)
|
||||||
popt.SetIncludeGerberNetlistInfo(True)
|
popt.SetIncludeGerberNetlistInfo(True)
|
||||||
popt.SetCreateGerberJobFile(gen_job_file)
|
popt.SetCreateGerberJobFile(gen_job_file)
|
||||||
popt.SetUseGerberProtelExtensions(False)
|
popt.SetUseGerberProtelExtensions(False)
|
||||||
popt.SetExcludeEdgeLayer(False);
|
|
||||||
popt.SetUseAuxOrigin(True)
|
popt.SetUseAuxOrigin(True)
|
||||||
|
|
||||||
# This by gerbers only
|
# This by gerbers only
|
||||||
|
@ -91,6 +90,8 @@ plot_plan = [
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
# In Gerber format, Set layer before calling OpenPlotfile is mandatory to generate
|
||||||
|
# the right Gerber file header.
|
||||||
for layer_info in plot_plan:
|
for layer_info in plot_plan:
|
||||||
if layer_info[1] <= B_Cu:
|
if layer_info[1] <= B_Cu:
|
||||||
popt.SetSkipPlotNPTH_Pads( True )
|
popt.SetSkipPlotNPTH_Pads( True )
|
||||||
|
|
|
@ -41,7 +41,6 @@ popt.SetAutoScale(False)
|
||||||
popt.SetScale(1)
|
popt.SetScale(1)
|
||||||
popt.SetMirror(False)
|
popt.SetMirror(False)
|
||||||
popt.SetUseGerberAttributes(True)
|
popt.SetUseGerberAttributes(True)
|
||||||
popt.SetExcludeEdgeLayer(False);
|
|
||||||
popt.SetScale(1)
|
popt.SetScale(1)
|
||||||
popt.SetUseAuxOrigin(True)
|
popt.SetUseAuxOrigin(True)
|
||||||
|
|
||||||
|
@ -71,6 +70,8 @@ plot_plan = [
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
# In Gerber format, Set layer before calling OpenPlotfile is mandatory to generate
|
||||||
|
# the right Gerber file header.
|
||||||
for layer_info in plot_plan:
|
for layer_info in plot_plan:
|
||||||
pctl.SetLayer(layer_info[1])
|
pctl.SetLayer(layer_info[1])
|
||||||
pctl.OpenPlotfile(layer_info[0], PLOT_FORMAT_GERBER, layer_info[2])
|
pctl.OpenPlotfile(layer_info[0], PLOT_FORMAT_GERBER, layer_info[2])
|
||||||
|
|
Loading…
Reference in New Issue