Merge pull request #101 from chintal/outline
Add hook for outline layer to PCB class
This commit is contained in:
commit
281c26ec37
1 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue