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

Method unsetupObject

src/App/FeaturePython.cpp:242–262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240}
241
242void FeaturePythonImp::unsetupObject()
243{
244 _FC_PY_CALL_CHECK(unsetupObject, return);
245
246 // Run the execute method of the proxy object.
247 Base::PyGILStateLocker lock;
248 try {
249 if (has__object__) {
250 Base::pyCall(py_unsetupObject.ptr());
251 }
252 else {
253 Py::Tuple args(1);
254 args.setItem(0, Py::Object(object->getPyObject(), true));
255 Base::pyCall(py_unsetupObject.ptr(), args.ptr());
256 }
257 }
258 catch (Py::Exception&) {
259 Base::PyException e; // extract the Python error text
260 e.reportException();
261 }
262}
263
264bool FeaturePythonImp::getSubObject(DocumentObject*& ret,
265 const char* subname,

Callers

nothing calls this directly

Calls 5

pyCallFunction · 0.85
ObjectClass · 0.70
ptrMethod · 0.45
getPyObjectMethod · 0.45
reportExceptionMethod · 0.45

Tested by

no test coverage detected