diff --git a/src/Mod/Arch/ArchCommands.py b/src/Mod/Arch/ArchCommands.py index c08d3b41ba..f481a9a862 100644 --- a/src/Mod/Arch/ArchCommands.py +++ b/src/Mod/Arch/ArchCommands.py @@ -688,7 +688,7 @@ def pruneIncluded(objectslist,strict=False): if obj.isDerivedFrom("Part::Feature"): if not (Draft.getType(obj) in ["Window","Clone","Pipe","Rebar"]): for parent in obj.InList: - if parent.isDerivedFrom("Part::Feature") and not (Draft.getType(parent) in ["Facebinder","Window"]): + if parent.isDerivedFrom("Part::Feature") and not (Draft.getType(parent) in ["Facebinder","Window","Roof"]): if not parent.isDerivedFrom("Part::Part2DObject"): # don't consider 2D objects based on arch elements if hasattr(parent,"CloneOf"): diff --git a/src/Mod/Draft/Draft.py b/src/Mod/Draft/Draft.py index b4f07ffdc2..9e6c11bbc4 100644 --- a/src/Mod/Draft/Draft.py +++ b/src/Mod/Draft/Draft.py @@ -357,6 +357,9 @@ def getGroupContents(objectslist,walls=False,addgroups=False,spaces=False): for obj in objectslist: if obj: if obj.isDerivedFrom("App::DocumentObjectGroup") or ((getType(obj) in ["Space","Site"]) and hasattr(obj,"Group")): + if getType(obj) == "Site": + if obj.Shape: + newlist.append(obj) if obj.isDerivedFrom("Drawing::FeaturePage"): # skip if the group is a page newlist.append(obj)