Create the assembly object inside the list of commands

This commit is contained in:
Furgo
2024-10-02 20:50:57 +02:00
committed by Yorik van Havre
parent c1c9cb63e0
commit be5255e9bf

View File

@@ -327,6 +327,7 @@ class TaskAssemblyCreateBom(QtCore.QObject):
Gui.addModule("UtilsAssembly")
if assembly is not None:
commands = (
"assembly = UtilsAssembly.activeAssembly()\n"
"bom_group = UtilsAssembly.getBomGroup(assembly)\n"
'bomObj = bom_group.newObject("Assembly::BomObject", "Bill of Materials")'
)