Arch: Arch_Pipe did not process Subtractions and Additions
Forum topic: https://forum.freecad.org/viewtopic.php?t=86556
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user