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

Method getUniqueObjectName

src/App/DocumentPyImp.cpp:272–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

270}
271
272PyObject* DocumentPy::getUniqueObjectName(PyObject* args)
273{
274 char* sName;
275 if (!PyArg_ParseTuple(args, "s", &sName)) {
276 return nullptr;
277 }
278 PY_TRY
279 {
280 auto newName = getDocumentPtr()->getUniqueObjectName(sName);
281 return Py::new_reference_to(Py::String(newName));
282 }
283 PY_CATCH;
284}
285

Callers

nothing calls this directly

Calls 2

new_reference_toFunction · 0.85
StringClass · 0.70

Tested by

no test coverage detected