BIM: BimWall add missing imports

Fixes #16996.
This commit is contained in:
Roy-043
2024-10-04 17:52:05 +02:00
committed by Yorik van Havre
parent ae015a18b4
commit 763f56bd98

View File

@@ -134,6 +134,8 @@ class Arch_Wall:
import Draft
import Part
import Arch
import ArchWall
from draftutils import gui_utils
if obj:
if Draft.getType(obj) == "Wall":
@@ -171,9 +173,9 @@ class Arch_Wall:
else:
if self.JOIN_WALLS_SKETCHES:
# join existing subwalls first if possible, then add the new one
w = joinWalls(self.existing)
w = Arch.joinWalls(self.existing)
if w:
if areSameWallTypes([w,self]):
if ArchWall.areSameWallTypes([w,self]):
FreeCADGui.doCommand('FreeCAD.ActiveDocument.'+w.Name+'.Base.addGeometry(trace)')
else:
# if not possible, add new wall as addition to the existing one