@@ -115,18 +115,6 @@ def startCAMmer(self, args, board=None, logger=None):
115
115
else :
116
116
board .Save (board .GetFileName ())
117
117
118
- # Check if user wants to build zone fills
119
- if wx .GetApp () is not None :
120
- resp = wx .MessageBox ("Do you want to build the zone fills?" ,
121
- 'Fill zones?' , wx .YES_NO | wx .ICON_INFORMATION )
122
- if resp == wx .YES :
123
- report += "Zones filled by user.\n "
124
- fillerTool = pcbnew .ZONE_FILLER (board )
125
- fillerTool .Fill (board .Zones ())
126
- else :
127
- fillerTool = pcbnew .ZONE_FILLER (board )
128
- fillerTool .Fill (board .Zones ())
129
-
130
118
if board is None :
131
119
report += "Could not load board. Quitting.\n "
132
120
sysExit = 2
@@ -168,6 +156,12 @@ def startCAMmer(self, args, board=None, logger=None):
168
156
for i in range (1 ,31 ): # Add 30 internal copper layers. Convert In1.Cu to GL2 - see #3
169
157
file_ext ["In{}.Cu" .format (i )] = "GL{}" .format (i + 1 )
170
158
159
+ # Fill the zones
160
+ # This prevents badness with pads on "F.Cu, B.Cu and connected layers" and "Connected layers only"
161
+ report += "Zones filled by CAMmer.\n "
162
+ fillerTool = pcbnew .ZONE_FILLER (board )
163
+ fillerTool .Fill (board .Zones ())
164
+
171
165
# Start plotting: https://gitlab.com/kicad/code/kicad/-/blob/master/demos/python_scripts_examples/plot_board.py
172
166
173
167
pctl = PLOT_CONTROLLER (board )
0 commit comments