Py functionality for Dimensions

This commit is contained in:
WandererFan
2016-01-27 11:27:31 -05:00
committed by wmayer
parent 8673eec4e7
commit 9df14d5020
5 changed files with 66 additions and 0 deletions

View File

@@ -48,6 +48,8 @@
#include <BRepBuilderAPI_MakeEdge.hxx>
#include <BRepExtrema_DistShapeShape.hxx>
#include "DrawViewDimensionPy.h" // generated from DrawViewDimensionPy.xml
using namespace TechDraw;
//===========================================================================
@@ -510,3 +512,12 @@ bool DrawViewDimension::hasReferences(void) const
}
return result;
}
PyObject *DrawViewDimension::getPyObject(void)
{
if (PythonObject.is(Py::_None())) {
// ref counter is set to 1
PythonObject = Py::Object(new DrawViewDimensionPy(this),true);
}
return Py::new_reference_to(PythonObject);
}