From e7aaf4b7716ee94c697b777a94dfee88639e8a93 Mon Sep 17 00:00:00 2001 From: vocx-fc Date: Thu, 8 Aug 2019 00:12:55 -0500 Subject: [PATCH] Draft: WorkingPlane, Pythonic style, improved the docstrings; alignToSelection() only works when 'FreeCADGui.Selection' is available, that is, when the graphical interface is loaded. --- src/Mod/Draft/WorkingPlane.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Mod/Draft/WorkingPlane.py b/src/Mod/Draft/WorkingPlane.py index 38ccae257f..383af24d19 100644 --- a/src/Mod/Draft/WorkingPlane.py +++ b/src/Mod/Draft/WorkingPlane.py @@ -585,6 +585,9 @@ class plane: It extracts the shape of the object or subobject and then calls `alignToFace(shape, offset)`. + This method only works when the `FreeCADGui.Selection` + class is available, that is, when the graphical interface is loaded. + Parameter --------- offset : float