Arch: Arch_Pipe did not process Subtractions and Additions

Forum topic:
https://forum.freecad.org/viewtopic.php?t=86556
This commit is contained in:
Roy-043
2024-03-30 15:51:00 +01:00
committed by Yorik van Havre
parent d3d18ac7e0
commit b4e50f4d93
2 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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: