diff --git a/src/Mod/Arch/ArchSectionPlane.py b/src/Mod/Arch/ArchSectionPlane.py index c52acb4726..a82ebb112f 100644 --- a/src/Mod/Arch/ArchSectionPlane.py +++ b/src/Mod/Arch/ArchSectionPlane.py @@ -1160,7 +1160,9 @@ class _ViewProviderSectionPlane: elif prop == "LineWidth": self.drawstyle.lineWidth = vobj.LineWidth elif prop in ["CutView","CutMargin"]: - if hasattr(vobj,"CutView") and FreeCADGui.ActiveDocument.ActiveView: + if hasattr(vobj, "CutView") \ + and FreeCADGui.ActiveDocument.ActiveView \ + and hasattr(FreeCADGui.ActiveDocument.ActiveView, "getSceneGraph"): sg = FreeCADGui.ActiveDocument.ActiveView.getSceneGraph() if vobj.CutView: if self.clip: