Assembly: Implement Bill Of Materials (#14198)

* Assembly: Implementation of BOM

* Assembly: BOM: make it possible for BOM to be made without an assembly.
This commit is contained in:
PaddleStroke
2024-06-17 18:16:32 +02:00
committed by GitHub
parent 60a0e70882
commit 3fa0b68878
31 changed files with 2355 additions and 29 deletions

View File

@@ -607,6 +607,20 @@ def color_from_unsigned(c):
]
def getBomGroup(assembly):
bom_group = None
for obj in assembly.OutList:
if obj.TypeId == "Assembly::BomGroup":
bom_group = obj
break
if not bom_group:
bom_group = assembly.newObject("Assembly::BomGroup", "Bills of Materials")
return bom_group
def getJointGroup(assembly):
joint_group = None