use setup_properties method on Board

This commit is contained in:
Morgan 'ARR\!' Allen 2025-05-16 17:45:24 -07:00
parent a5dbdee3c8
commit ac84562e1a

View file

@ -212,6 +212,18 @@ class BoardObject(BaseObject):
# maybe save the selection and restore if not empty, else select the poly as below # maybe save the selection and restore if not empty, else select the poly as below
#board.add_to_selection(boardpoly) #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): def __getstate__(self):
return None return None