make parts use sync_from
This commit is contained in:
parent
6137b50208
commit
205254a4f3
2 changed files with 5 additions and 3 deletions
|
@ -15,12 +15,13 @@ from .bases import BaseObject, BaseViewProvider
|
|||
class PartsObject(BaseObject):
|
||||
TYPE = 'KiConnect::Parts'
|
||||
|
||||
def __init__(self, feature):
|
||||
super(PartsObject, self).__init__(feature)
|
||||
|
||||
def execute(self, feature):
|
||||
super(PartsObject, self).execute(feature)
|
||||
|
||||
self.import_footprints()
|
||||
|
||||
def import_footprints(self):
|
||||
def sync_from(self):
|
||||
kiconn_board = self.feature.getParentGroup()
|
||||
kicad_board = self.get_api().kicad.get_board()
|
||||
|
||||
|
|
|
@ -32,6 +32,7 @@ class Project:
|
|||
kicad_board = self.API.Proxy.kicad.get_board()
|
||||
|
||||
polygons = Board.extract_polygons(kicad_board)
|
||||
|
||||
for polygon in polygons:
|
||||
self.board = Board.makeBoard(self.feature, kicad_board, polygon)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue