diff --git a/src/Mod/Part/App/GeometryPy.xml b/src/Mod/Part/App/GeometryPy.xml
index b557acacd3..16bb3baf9d 100644
--- a/src/Mod/Part/App/GeometryPy.xml
+++ b/src/Mod/Part/App/GeometryPy.xml
@@ -55,5 +55,11 @@ means that it is not part of a later built shape.
+
+
+ Gives the tag of the geometry as string.
+
+
+
diff --git a/src/Mod/Part/App/GeometryPyImp.cpp b/src/Mod/Part/App/GeometryPyImp.cpp
index 737bb07ef6..e707e4441e 100644
--- a/src/Mod/Part/App/GeometryPyImp.cpp
+++ b/src/Mod/Part/App/GeometryPyImp.cpp
@@ -35,6 +35,8 @@
# include
#endif
+#include
+
#include
#include
#include
@@ -221,6 +223,12 @@ void GeometryPy::setConstruction(Py::Boolean arg)
getGeometryPtr()->Construction = arg;
}
+Py::String GeometryPy::getTag(void) const
+{
+ std::string tmp = boost::uuids::to_string(getGeometryPtr()->getTag());
+ return Py::String(tmp);
+}
+
PyObject *GeometryPy::getCustomAttributes(const char* /*attr*/) const
{
return 0;