Assembly: fix doCommand code in CommandExportASMT.py

See:
https://forum.freecad.org/viewtopic.php?t=94952
This commit is contained in:
Roy-043
2025-02-19 18:20:18 +01:00
committed by Chris Hennes
parent 84d850afc9
commit 14f15c4a50

View File

@@ -74,6 +74,8 @@ class CommandExportASMT:
)
if filePath:
Gui.addModule("UtilsAssembly")
Gui.doCommand("assembly = UtilsAssembly.activeAssembly()")
Gui.doCommand(f'assembly.exportAsASMT("{filePath}")')