[Any Layer] Added support for reading edge on all layers in KiCad 7

This commit is contained in:
Salvador E. Tropea 2023-02-13 08:31:16 -03:00
parent 734adc2f68
commit 2d9f7b702f
1 changed files with 5 additions and 1 deletions

View File

@ -230,7 +230,11 @@ class AnyLayerOptions(VariantOptions):
def read_vals_from_po(self, po):
# excludeedgelayer
self.exclude_edge_layer = po.GetExcludeEdgeLayer()
if GS.ki7:
self.exclude_edge_layer = not po.GetPlotOnAllLayersSelection().Contains(GS.board.GetLayerID('Edge.Cuts'))
logger.error(self.exclude_edge_layer)
else:
self.exclude_edge_layer = po.GetExcludeEdgeLayer()
# plotframeref
self.plot_sheet_reference = po.GetPlotFrameRef()
# plotreference