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

Method supportedProperties

src/App/DocumentObjectPyImp.cpp:164–181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162}
163
164PyObject* DocumentObjectPy::supportedProperties(PyObject* args)
165{
166 if (!PyArg_ParseTuple(args, "")) {
167 return nullptr;
168 }
169
170 std::vector<Base::Type> ary;
171 Base::Type::getAllDerivedFrom(App::Property::getClassTypeId(), ary);
172 Py::List res;
173 for (auto& it : ary) {
174 Base::BaseClass* data = static_cast<Base::BaseClass*>(it.createInstance());
175 if (data) {
176 delete data;
177 res.append(Base::toPyString(it.getName()));
178 }
179 }
180 return Py::new_reference_to(res);
181}
182
183PyObject* DocumentObjectPy::touch(PyObject* args)
184{

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected