From 37dfd86368d080534eeefec9f726cae9e5f03e7e Mon Sep 17 00:00:00 2001 From: Chintalagiri Shashank Date: Sat, 11 May 2019 04:03:20 +0530 Subject: Add hook for outline layer to PCB class --- gerber/pcb.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gerber/pcb.py b/gerber/pcb.py index ba15161..56deaa3 100644 --- a/gerber/pcb.py +++ b/gerber/pcb.py @@ -94,6 +94,12 @@ class PCB(object): layer.layer_class in ('top', 'bottom', 'internal')])) + @property + def outline_layer(self): + for layer in self.layers: + if layer.layer_class == 'outline': + return layer + @property def layer_count(self): """ Number of *COPPER* layers -- cgit