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).
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user