diff --git a/src/Mod/Arch/ArchCommands.py b/src/Mod/Arch/ArchCommands.py index df23cf434d..7e9f972b69 100644 --- a/src/Mod/Arch/ArchCommands.py +++ b/src/Mod/Arch/ArchCommands.py @@ -98,7 +98,7 @@ def addComponents(objectsList,host): if hostType in ["Floor","Building","Site","Project","BuildingPart"]: for o in objectsList: host.addObject(o) - elif hostType in ["Wall","Structure","Precast","Window","Roof","Stairs","StructuralSystem","Panel","Component"]: + elif hostType in ["Wall","Structure","Precast","Window","Roof","Stairs","StructuralSystem","Panel","Component","Pipe"]: import DraftGeomUtils a = host.Additions if hasattr(host,"Axes"): @@ -142,7 +142,7 @@ def removeComponents(objectsList,host=None): if not isinstance(objectsList,list): objectsList = [objectsList] if host: - if Draft.getType(host) in ["Wall","Structure","Precast","Window","Roof","Stairs","StructuralSystem","Panel","Component"]: + if Draft.getType(host) in ["Wall","Structure","Precast","Window","Roof","Stairs","StructuralSystem","Panel","Component","Pipe"]: if hasattr(host,"Tool"): if objectsList[0] == host.Tool: host.Tool = None diff --git a/src/Mod/Arch/ArchPipe.py b/src/Mod/Arch/ArchPipe.py index 596fac7cb0..20c9a801a7 100644 --- a/src/Mod/Arch/ArchPipe.py +++ b/src/Mod/Arch/ArchPipe.py @@ -279,7 +279,7 @@ class _ArchPipe(ArchComponent.Component): sh = shapes[0] else: sh = Part.makeCompound(shapes) - obj.Shape = sh + obj.Shape = self.processSubShapes(obj,sh,pl) if obj.Base: obj.Length = w.Length else: