MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / getElementMapVersion

Method getElementMapVersion

src/App/DocumentObjectPyImp.cpp:922–936  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

920}
921
922PyObject* DocumentObjectPy::getElementMapVersion(PyObject* args) const
923{
924 const char* name;
925 PyObject* restored = Py_False;
926 if (!PyArg_ParseTuple(args, "s|O", &name, &restored)) {
927 return NULL;
928 }
929
930 Property* prop = getDocumentObjectPtr()->getPropertyByName(name);
931 if (!prop) {
932 throw Py::ValueError("property not found");
933 }
934 return Py::new_reference_to(
935 Py::String(getDocumentObjectPtr()->getElementMapVersion(prop, Base::asBoolean(restored))));
936}
937
938PyObject* DocumentObjectPy::getCustomAttributes(const char* attr) const
939{

Callers

nothing calls this directly

Calls 4

new_reference_toFunction · 0.85
asBooleanFunction · 0.85
StringClass · 0.70
getPropertyByNameMethod · 0.45

Tested by

no test coverage detected