From 5af5936c24e4ad9df1d65fd7ad497f2c9daba02a Mon Sep 17 00:00:00 2001 From: Furgo <148809153+furgo16@users.noreply.github.com> Date: Tue, 10 Sep 2024 11:48:39 +0200 Subject: [PATCH] BIM: Fixes profile tool positioning (#16305) * [BIM] Get working plane when picking a point Fixes: #16284 * Use the new way of getting the Draft Working Plane --- src/Mod/BIM/bimcommands/BimProfile.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Mod/BIM/bimcommands/BimProfile.py b/src/Mod/BIM/bimcommands/BimProfile.py index b0ccb8e360..d6cbc3b8b6 100644 --- a/src/Mod/BIM/bimcommands/BimProfile.py +++ b/src/Mod/BIM/bimcommands/BimProfile.py @@ -116,7 +116,9 @@ class Arch_Profile: FreeCAD.ActiveDocument.openTransaction(translate("Arch","Create Profile")) FreeCADGui.addModule("Arch") FreeCADGui.doCommand('p = Arch.makeProfile('+str(self.Profile)+')') - FreeCADGui.doCommand('p.Placement.move('+pt+')') + FreeCADGui.addModule('WorkingPlane') + FreeCADGui.doCommand('p.Placement = WorkingPlane.get_working_plane().get_placement()') + FreeCADGui.doCommand('p.Placement.Base = ' + pt) FreeCADGui.addModule("Draft") FreeCADGui.doCommand("Draft.autogroup(p)") FreeCAD.ActiveDocument.commitTransaction()