Mod: add string header to dxf.h

This commit is contained in:
wmayer
2022-03-01 15:13:34 +01:00
parent b2f77797a7
commit 9955c64752
11 changed files with 153 additions and 34 deletions

View File

@@ -1418,6 +1418,27 @@ bool ViewProviderPythonFeatureImp::getLinkedViewProvider(
return true;
}
bool ViewProviderPythonFeatureImp::editProperty(const char *name)
{
_FC_PY_CALL_CHECK(editProperty,return false);
Base::PyGILStateLocker lock;
try {
Py::Tuple args(1);
args.setItem(0, Py::String(name));
Py::Object ret(Base::pyCall(py_editProperty.ptr(),args.ptr()));
return ret.isTrue();
}
catch (Py::Exception&) {
if (PyErr_ExceptionMatches(PyExc_NotImplementedError)) {
PyErr_Clear();
return false;
}
Base::PyException e; // extract the Python error text
e.ReportException();
}
return false;
}
// ---------------------------------------------------------