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

Method supportedTypes

src/App/DocumentPyImp.cpp:884–897  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

882}
883
884PyObject* DocumentPy::supportedTypes(PyObject* args)
885{
886 if (!PyArg_ParseTuple(args, "")) {
887 return nullptr;
888 }
889
890 std::vector<Base::Type> ary;
891 Base::Type::getAllDerivedFrom(App::DocumentObject::getClassTypeId(), ary);
892 Py::List res;
893 for (const auto& it : ary) {
894 res.append(Base::toPyString(it.getName()));
895 }
896 return Py::new_reference_to(res);
897}
898
899Py::List DocumentPy::getObjects() const
900{

Callers 2

_add_part_featureMethod · 0.80

Calls 4

toPyStringFunction · 0.85
new_reference_toFunction · 0.85
appendMethod · 0.45
getNameMethod · 0.45

Tested by 2

_add_part_featureMethod · 0.64