add Python functionality for ProjectionGroups

This commit is contained in:
WandererFan
2016-01-29 16:06:47 -05:00
committed by wmayer
parent 707ef236f3
commit 42eed349ac
12 changed files with 255 additions and 6 deletions

View File

@@ -32,6 +32,8 @@
#include "DrawProjGroupItem.h"
#include "DrawProjGroupItemPy.h" // generated from DrawProjGroupItemPy.xml
using namespace TechDraw;
const char* DrawProjGroupItem::TypeEnums[] = {"Front",
@@ -110,3 +112,11 @@ App::DocumentObjectExecReturn *DrawProjGroupItem::execute(void)
return TechDraw::DrawViewPart::execute();
}*/
PyObject *DrawProjGroupItem::getPyObject(void)
{
if (PythonObject.is(Py::_None())) {
// ref counter is set to 1
PythonObject = Py::Object(new DrawProjGroupItemPy(this),true);
}
return Py::new_reference_to(PythonObject);
}