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

Method getDocument

src/App/DocumentObjectPyImp.cpp:75–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75Py::Object DocumentObjectPy::getDocument() const
76{
77 DocumentObject* object = this->getDocumentObjectPtr();
78 Document* doc = object->getDocument();
79 if (!doc) {
80 return Py::None();
81 }
82 else {
83 return Py::Object(doc->getPyObject(), true);
84 }
85}
86
87PyObject* DocumentObjectPy::isAttachedToDocument(PyObject* args) const
88{

Callers 1

getViewObjectMethod · 0.45

Calls 2

ObjectClass · 0.70
getPyObjectMethod · 0.45

Tested by

no test coverage detected