add KiConnect Type to Substrate (PartDesign::Body)
This commit is contained in:
parent
ad679b9ae6
commit
e81979ad84
1 changed files with 4 additions and 1 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Reference in a new issue