Skip to content

Commit ac878b6

Browse files
committed
[Any Layer] More KiCad 9.0.1 adjusts
All API changes
1 parent 1f6b419 commit ac878b6

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

kibot/out_any_layer.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,11 @@ def get_targets(self, output_dir, layers):
276276
def read_vals_from_po(self, po):
277277
# excludeedgelayer
278278
if GS.ki7:
279-
self.exclude_edge_layer = not po.GetPlotOnAllLayersSelection().Contains(GS.board.GetLayerID('Edge.Cuts'))
279+
if GS.kicad_version_n < KICAD_VERSION_9_0_1:
280+
self.exclude_edge_layer = not po.GetPlotOnAllLayersSelection().Contains(GS.board.GetLayerID('Edge.Cuts'))
281+
else:
282+
id = GS.board.GetLayerID('Edge.Cuts')
283+
self.exclude_edge_layer = po.GetPlotOnAllLayersSequence().TestLayers(id, id+1) != 1
280284
else:
281285
self.exclude_edge_layer = po.GetExcludeEdgeLayer()
282286
# plotframeref
@@ -286,7 +290,7 @@ def read_vals_from_po(self, po):
286290
# plotvalue
287291
self.plot_footprint_values = po.GetPlotValue()
288292
# plotinvisibletext
289-
self.force_plot_invisible_refs_vals = po.GetPlotInvisibleText()
293+
self.force_plot_invisible_refs_vals = po.GetPlotInvisibleText() if GS.kicad_version_n < KICAD_VERSION_9_0_1 else False
290294
# viasonmask
291295
self.tent_vias = True if GS.ki9 else not po.GetPlotViaOnMaskLayer()
292296
if GS.ki5:

0 commit comments

Comments
 (0)