Add dumpSymbol method to DrawViewSymbol based classes

- this is mainly for debugging output from Arch/Draft
This commit is contained in:
WandererFan
2017-08-27 20:43:09 -04:00
committed by wmayer
parent 31535e9b53
commit 481008629b
4 changed files with 48 additions and 1 deletions

View File

@@ -38,6 +38,8 @@
#include "DrawPage.h"
#include "DrawViewSymbol.h"
#include <Mod/TechDraw/App/DrawViewSymbolPy.h> // generated from DrawViewSymbolPy.xml
using namespace TechDraw;
using namespace std;
@@ -158,7 +160,14 @@ bool DrawViewSymbol::checkFit(TechDraw::DrawPage* p) const
return result;
}
PyObject *DrawViewSymbol::getPyObject(void)
{
if (PythonObject.is(Py::_None())) {
// ref counter is set to 1
PythonObject = Py::Object(new DrawViewSymbolPy(this),true);
}
return Py::new_reference_to(PythonObject);
}
// Python Drawing feature ---------------------------------------------------------