From f4276ae8f1b2822b585153cd1a96cdfc7e39f7fc Mon Sep 17 00:00:00 2001 From: Furgo <148809153+furgo16@users.noreply.github.com> Date: Thu, 13 Mar 2025 18:37:00 +0100 Subject: [PATCH] BIM: include selected objects when creating a level --- src/Mod/BIM/bimcommands/BimBuildingPart.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/BIM/bimcommands/BimBuildingPart.py b/src/Mod/BIM/bimcommands/BimBuildingPart.py index 3e12b6fdb1..e90326e7e8 100644 --- a/src/Mod/BIM/bimcommands/BimBuildingPart.py +++ b/src/Mod/BIM/bimcommands/BimBuildingPart.py @@ -56,7 +56,7 @@ class Arch_Level: FreeCADGui.addModule("Arch") FreeCADGui.addModule("Draft") FreeCADGui.addModule("WorkingPlane") - FreeCADGui.doCommand("obj = Arch.makeFloor()") + FreeCADGui.doCommand("obj = Arch.makeFloor(FreeCADGui.Selection.getSelection())") FreeCADGui.doCommand("obj.Placement = WorkingPlane.get_working_plane().get_placement()") FreeCADGui.doCommand("Draft.autogroup(obj)") FreeCAD.ActiveDocument.commitTransaction()