Arch: New multicore IFC importer

This commit is contained in:
Yorik van Havre
2020-06-25 14:42:38 +02:00
parent 59bdba9c49
commit d43588d240
9 changed files with 379 additions and 19 deletions

View File

@@ -461,7 +461,7 @@ class BuildingPart(ArchIFC.IfcProduct):
return g
def touchChildren(self,obj):
"Touches all descendents where applicable"
for child in obj.Group:
@@ -472,6 +472,15 @@ class BuildingPart(ArchIFC.IfcProduct):
elif Draft.getType(child) in ["Group","BuildingPart"]:
self.touchChildren(child)
def addObject(self,obj,child):
"Adds an object to the group of this BuildingPart"
if not child in obj.Group:
g = obj.Group
g.append(child)
obj.Group = g
class ViewProviderBuildingPart: