diff --git a/src/Mod/Sketcher/App/SketchObjectPy.xml b/src/Mod/Sketcher/App/SketchObjectPy.xml
index b8eb29b8d..45b6db4c2 100644
--- a/src/Mod/Sketcher/App/SketchObjectPy.xml
+++ b/src/Mod/Sketcher/App/SketchObjectPy.xml
@@ -156,7 +156,12 @@
Deletes all unused (not further constrained) internal geometry
-
+
+
+
+ Approximates the given geometry with a B-Spline
+
+
diff --git a/src/Mod/Sketcher/App/SketchObjectPyImp.cpp b/src/Mod/Sketcher/App/SketchObjectPyImp.cpp
index 0923eb3d3..172387966 100644
--- a/src/Mod/Sketcher/App/SketchObjectPyImp.cpp
+++ b/src/Mod/Sketcher/App/SketchObjectPyImp.cpp
@@ -998,6 +998,24 @@ PyObject* SketchObjectPy::DeleteUnusedInternalGeometry(PyObject *args)
Py_Return;
}
+PyObject* SketchObjectPy::ConvertToNURBS(PyObject *args)
+{
+ int GeoId;
+
+ if (!PyArg_ParseTuple(args, "i", &GeoId))
+ return 0;
+
+ if (this->getSketchObjectPtr()->ConvertToNURBS(GeoId)==false) {
+ std::stringstream str;
+ str << "Object does not support NURBS conversion: " << GeoId;
+ PyErr_SetString(PyExc_ValueError, str.str().c_str());
+ return 0;
+ }
+
+ Py_Return;
+}
+
+
Py::Int SketchObjectPy::getConstraintCount(void) const
{
return Py::Int(this->getSketchObjectPtr()->Constraints.getSize());