diff --git a/src/Mod/TechDraw/App/DrawViewPy.xml b/src/Mod/TechDraw/App/DrawViewPy.xml
index 7bc1d48a31..4e368bd30d 100644
--- a/src/Mod/TechDraw/App/DrawViewPy.xml
+++ b/src/Mod/TechDraw/App/DrawViewPy.xml
@@ -20,6 +20,13 @@
+
+
+ float scale = getScale(). Returns the correct scale for this view. Handles whether to
+ use this view's scale property or a parent's view (as in a projection group).
+
+
+
diff --git a/src/Mod/TechDraw/App/DrawViewPyImp.cpp b/src/Mod/TechDraw/App/DrawViewPyImp.cpp
index 9d43c4044f..936244f0d1 100644
--- a/src/Mod/TechDraw/App/DrawViewPyImp.cpp
+++ b/src/Mod/TechDraw/App/DrawViewPyImp.cpp
@@ -78,6 +78,19 @@ PyObject* DrawViewPy::translateLabel(PyObject *args)
Py_Return;
}
+//! return the correct scale for this view
+PyObject* DrawViewPy::getScale(PyObject *args)
+{
+ if (!PyArg_ParseTuple(args, "")) {
+ throw Py::TypeError("Do not understand passed parameter.");
+ }
+
+ DrawView* dv = getDrawViewPtr();
+
+ return PyFloat_FromDouble(dv->getScale());
+}
+
+
PyObject *DrawViewPy::getCustomAttributes(const char* /*attr*/) const
{