From 14f15c4a50f60ffc302761551be7006b3cf2bb05 Mon Sep 17 00:00:00 2001 From: Roy-043 Date: Wed, 19 Feb 2025 18:20:18 +0100 Subject: [PATCH] Assembly: fix doCommand code in CommandExportASMT.py See: https://forum.freecad.org/viewtopic.php?t=94952 --- src/Mod/Assembly/CommandExportASMT.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Mod/Assembly/CommandExportASMT.py b/src/Mod/Assembly/CommandExportASMT.py index 0ca7d9372a..975a752584 100644 --- a/src/Mod/Assembly/CommandExportASMT.py +++ b/src/Mod/Assembly/CommandExportASMT.py @@ -74,6 +74,8 @@ class CommandExportASMT: ) if filePath: + Gui.addModule("UtilsAssembly") + Gui.doCommand("assembly = UtilsAssembly.activeAssembly()") Gui.doCommand(f'assembly.exportAsASMT("{filePath}")')