add KiConnect Type to Substrate (PartDesign::Body)

This commit is contained in:
Morgan 'ARR\!' Allen 2025-04-30 20:23:00 -07:00
parent ad679b9ae6
commit e81979ad84

View file

@ -52,8 +52,11 @@ class BoardObject(BaseObject):
def create_substrate_body(self):
substrate_body = App.ActiveDocument.addObject('PartDesign::Body', 'Substrate')
self.feature.addObject(substrate_body)
substrate_body.addProperty('App::PropertyString', 'Type', 'KiConnect', 'KiConnect specific Type', read_only=True, hidden=True)
substrate_body.Type = 'KiConnect::BoardBody'
self.feature.addObject(substrate_body)
def create_substrate_sketch(self):
substrate_sketch = App.ActiveDocument.addObject('Sketcher::SketchObject', 'Sketch')