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

Method removeObject

src/App/Document.cpp:3503–3508  ·  view source on GitHub ↗

Remove an object out of the document

Source from the content-addressed store, hash-verified

3501
3502/// Remove an object out of the document
3503void Document::removeObject(const DocumentObject* object)
3504{
3505 if (object->getDocument() == this) {
3506 removeObject(object->getNameInDocument());
3507 }
3508}
3509
3510/// Remove an object out of the document
3511void Document::removeObject(const char* sName)

Callers 15

syncCopyOnChangeMethod · 0.45
makeCopyOnChangeMethod · 0.45
updateMethod · 0.45
detachElementMethod · 0.45
unsetupObjectMethod · 0.45
recomputeMethod · 0.45
moveObjectMethod · 0.45
addObjectsMethod · 0.45
onDeleteMethod · 0.45

Calls 7

getNameFunction · 0.70
getDocumentMethod · 0.45
getNameInDocumentMethod · 0.45
findMethod · 0.45
endMethod · 0.45
testStatusMethod · 0.45
getFullNameMethod · 0.45

Tested by

no test coverage detected