expose FeatureAddSub to Python, fixes #0000955

This commit is contained in:
wmayer
2017-09-14 15:09:53 +02:00
parent 712966ff50
commit d5077eae1e
4 changed files with 135 additions and 60 deletions

View File

@@ -34,7 +34,10 @@ using namespace PartDesign;
// returns a string which represent the object e.g. when printed in python
std::string FeaturePy::representation(void) const
{
return std::string("<PartDesign::Feature>");
App::DocumentObject* object = this->getFeaturePtr();
std::stringstream str;
str << "<" << object->getTypeId().getName() << ">";
return str.str();
}
PyObject *FeaturePy::getCustomAttributes(const char* ) const