Arch: IFC exporter now exports cloned Arch objects with shared geometry
This commit is contained in:
@@ -649,7 +649,14 @@ def pruneIncluded(objectslist):
|
||||
if parent.isDerivedFrom("Part::Feature"):
|
||||
if not parent.isDerivedFrom("Part::Part2DObject"):
|
||||
# don't consider 2D objects based on arch elements
|
||||
toplevel = False
|
||||
if hasattr(parent,"CloneOf"):
|
||||
if parent.CloneOf:
|
||||
if parent.CloneOf.Name != obj.Name:
|
||||
toplevel = False
|
||||
else:
|
||||
toplevel = False
|
||||
else:
|
||||
toplevel = False
|
||||
if toplevel:
|
||||
newlist.append(obj)
|
||||
return newlist
|
||||
|
||||
Reference in New Issue
Block a user