From b754898b0b9dab59d99a773e40341e9169ebf06a Mon Sep 17 00:00:00 2001 From: Roy-043 <70520633+Roy-043@users.noreply.github.com> Date: Tue, 14 Oct 2025 12:21:43 +0200 Subject: [PATCH] BIM: fix Arch_RemoveShape attribute error Fixes #24610. Note that the command (after this PR) does not work properly (as was the case in v0.21). --- src/Mod/BIM/ArchCommands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/BIM/ArchCommands.py b/src/Mod/BIM/ArchCommands.py index 4ee234cc2a..cf0469cde6 100644 --- a/src/Mod/BIM/ArchCommands.py +++ b/src/Mod/BIM/ArchCommands.py @@ -712,7 +712,7 @@ def removeShape(objs, mark=True): str.Placement = dims[0] elif tp == "Wall": FreeCAD.ActiveDocument.removeObject(name) - import ArchWall + import Arch length = dims[1] width = dims[2] @@ -721,7 +721,7 @@ def removeShape(objs, mark=True): v1 = dims[0].multVec(v1) v2 = dims[0].multVec(v2) line = Draft.makeLine(v1, v2) - ArchWall.makeWall(line, width=width, height=dims[3], name=name) + Arch.makeWall(line, width=width, height=dims[3], name=name) else: if mark: obj.ViewObject.ShapeColor = (1.0, 0.0, 0.0, 1.0)