use setup_properties method on Board
This commit is contained in:
parent
a5dbdee3c8
commit
ac84562e1a
1 changed files with 12 additions and 0 deletions
|
@ -212,6 +212,18 @@ class BoardObject(BaseObject):
|
|||
# maybe save the selection and restore if not empty, else select the poly as below
|
||||
#board.add_to_selection(boardpoly)
|
||||
|
||||
def setup_properties(self, feature):
|
||||
super(BoardObject, self).setup_properties(feature)
|
||||
|
||||
kicad_board = self.kicad_board
|
||||
|
||||
feature.addProperty('App::PropertyPlacement', 'BoardOffset', 'KiConnect', 'Internal offset for zeroing out Footprint offset', hidden=True, read_only=True)
|
||||
feature.addProperty('App::PropertyString', 'Doc', 'KiConnect', 'Doc in project to sync with', read_only=True)
|
||||
feature.addProperty('App::PropertyString', 'PolygonId', 'KiConnect', 'Polygon ID for the original outline', hidden=True, read_only=True)
|
||||
feature.addProperty('App::PropertyVectorList', 'Vectors', 'KiConnect', 'Internal offset for zeroing out Footprint offset', hidden=True)
|
||||
|
||||
feature.Doc = kicad_board.name
|
||||
|
||||
def __getstate__(self):
|
||||
return None
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue