| 882 | } |
| 883 | |
| 884 | PyObject* 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 | |
| 899 | Py::List DocumentPy::getObjects() const |
| 900 | { |