diff --git a/src/Mod/Sketcher/App/SketchObjectPy.xml b/src/Mod/Sketcher/App/SketchObjectPy.xml
index 85f6374987..3a3212aa3c 100644
--- a/src/Mod/Sketcher/App/SketchObjectPy.xml
+++ b/src/Mod/Sketcher/App/SketchObjectPy.xml
@@ -33,6 +33,11 @@
delete all the geometry objects and constraints from the sketch except external geometry
+
+
+ delete all the constraints from the sketch
+
+
switch a geometry to a construction line
diff --git a/src/Mod/Sketcher/App/SketchObjectPyImp.cpp b/src/Mod/Sketcher/App/SketchObjectPyImp.cpp
index f2bbc34338..69678141bc 100644
--- a/src/Mod/Sketcher/App/SketchObjectPyImp.cpp
+++ b/src/Mod/Sketcher/App/SketchObjectPyImp.cpp
@@ -217,7 +217,7 @@ PyObject* SketchObjectPy::deleteAllGeometry(PyObject *args)
{
if (!PyArg_ParseTuple(args, ""))
return 0;
-
+
if (this->getSketchObjectPtr()->deleteAllGeometry()) {
std::stringstream str;
str << "Unable to delete Geometry";
@@ -228,6 +228,20 @@ PyObject* SketchObjectPy::deleteAllGeometry(PyObject *args)
Py_Return;
}
+PyObject* SketchObjectPy::deleteAllConstraints(PyObject *args)
+{
+ if (!PyArg_ParseTuple(args, ""))
+ return 0;
+
+ if (this->getSketchObjectPtr()->deleteAllConstraints()) {
+ std::stringstream str;
+ str << "Unable to delete Constraints";
+ PyErr_SetString(PyExc_ValueError, str.str().c_str());
+ return 0;
+ }
+
+ Py_Return;
+}
PyObject* SketchObjectPy::toggleConstruction(PyObject *args)