| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| |
|
| |
|
| |
|
| | #include <Base/Console.h>
|
| | #include <Base/Interpreter.h>
|
| | #include <Base/PyObjectBase.h>
|
| |
|
| | #include "CenterLine.h"
|
| | #include "CosmeticExtension.h"
|
| | #include "Cosmetic.h"
|
| | #include "DrawComplexSection.h"
|
| | #include "DrawGeomHatch.h"
|
| | #include "DrawHatch.h"
|
| | #include "DrawLeaderLine.h"
|
| | #include "DrawPage.h"
|
| | #include "DrawParametricTemplate.h"
|
| | #include "DrawProjGroup.h"
|
| | #include "DrawProjGroupItem.h"
|
| | #include "DrawRichAnno.h"
|
| | #include "DrawSVGTemplate.h"
|
| | #include "DrawTile.h"
|
| | #include "DrawTileWeld.h"
|
| | #include "DrawViewAnnotation.h"
|
| | #include "DrawViewArch.h"
|
| | #include "DrawViewBalloon.h"
|
| | #include "DrawViewClip.h"
|
| | #include "DrawViewCollection.h"
|
| | #include "DrawViewDetail.h"
|
| | #include "DrawViewDimension.h"
|
| | #include "DrawViewDimExtent.h"
|
| | #include "DrawViewDraft.h"
|
| | #include "DrawView.h"
|
| | #include "DrawViewImage.h"
|
| | #include "DrawViewPart.h"
|
| | #include "DrawViewSection.h"
|
| | #include "DrawViewSpreadsheet.h"
|
| | #include "DrawViewSymbol.h"
|
| | #include "DrawWeldSymbol.h"
|
| | #include "FeatureProjection.h"
|
| | #include "LandmarkDimension.h"
|
| | #include "PropertyCenterLineList.h"
|
| | #include "PropertyCosmeticEdgeList.h"
|
| | #include "PropertyCosmeticVertexList.h"
|
| | #include "PropertyGeomFormatList.h"
|
| | #include "DrawBrokenViewPy.h"
|
| |
|
| |
|
| |
|
| | namespace TechDraw {
|
| | extern PyObject* initModule();
|
| | }
|
| |
|
| |
|
| | PyMOD_INIT_FUNC(TechDraw)
|
| | {
|
| |
|
| | try {
|
| | Base::Interpreter().loadModule("Part");
|
| | Base::Interpreter().loadModule("Measure");
|
| | }
|
| | catch(const Base::Exception& e) {
|
| | PyErr_SetString(PyExc_ImportError, e.what());
|
| | PyMOD_Return(nullptr);
|
| | }
|
| | PyObject* mod = TechDraw::initModule();
|
| | Base::Console().log("Loading TechDraw module… done\n");
|
| |
|
| | TechDraw::DrawPage ::init();
|
| | TechDraw::DrawView ::init();
|
| | TechDraw::DrawViewCollection ::init();
|
| | TechDraw::DrawViewPart ::init();
|
| | TechDraw::DrawViewAnnotation ::init();
|
| | TechDraw::DrawViewSymbol ::init();
|
| | TechDraw::DrawViewSpreadsheet ::init();
|
| |
|
| | TechDraw::DrawViewSection ::init();
|
| | TechDraw::DrawComplexSection ::init();
|
| | TechDraw::DrawViewDimension ::init();
|
| | TechDraw::DrawViewDimExtent ::init();
|
| | TechDraw::LandmarkDimension ::init();
|
| | TechDraw::DrawProjGroup ::init();
|
| | TechDraw::DrawProjGroupItem ::init();
|
| | TechDraw::DrawViewDetail ::init();
|
| | TechDraw::DrawViewBalloon ::init();
|
| | TechDraw::DrawLeaderLine ::init();
|
| | TechDraw::DrawRichAnno ::init();
|
| |
|
| | TechDraw::DrawTemplate ::init();
|
| | TechDraw::DrawParametricTemplate::init();
|
| | TechDraw::DrawSVGTemplate ::init();
|
| |
|
| | TechDraw::DrawViewClip ::init();
|
| | TechDraw::DrawHatch ::init();
|
| | TechDraw::DrawGeomHatch ::init();
|
| | TechDraw::DrawViewDraft ::init();
|
| | TechDraw::DrawViewArch ::init();
|
| | TechDraw::DrawViewImage ::init();
|
| | TechDraw::DrawTile ::init();
|
| | TechDraw::DrawTileWeld ::init();
|
| | TechDraw::DrawWeldSymbol ::init();
|
| | TechDraw::DrawBrokenView ::init();
|
| |
|
| | TechDraw::PropertyGeomFormatList::init();
|
| | TechDraw::GeomFormat ::init();
|
| | TechDraw::PropertyCenterLineList::init();
|
| | TechDraw::CenterLine ::init();
|
| | TechDraw::PropertyCosmeticEdgeList::init();
|
| | TechDraw::CosmeticEdge ::init();
|
| | TechDraw::PropertyCosmeticVertexList::init();
|
| | TechDraw::CosmeticVertex ::init();
|
| |
|
| | TechDraw::CosmeticExtension ::init();
|
| | TechDraw::CosmeticExtensionPython::init();
|
| |
|
| | TechDraw::FeatureProjection::init();
|
| |
|
| |
|
| |
|
| | TechDraw::DrawPagePython ::init();
|
| | TechDraw::DrawViewPython ::init();
|
| | TechDraw::DrawViewPartPython ::init();
|
| | TechDraw::DrawViewSectionPython::init();
|
| | TechDraw::DrawComplexSectionPython ::init();
|
| | TechDraw::DrawTemplatePython ::init();
|
| | TechDraw::DrawViewSymbolPython::init();
|
| | TechDraw::DrawLeaderLinePython::init();
|
| | TechDraw::DrawRichAnnoPython ::init();
|
| | TechDraw::DrawTilePython ::init();
|
| | TechDraw::DrawTileWeldPython ::init();
|
| | TechDraw::DrawWeldSymbolPython::init();
|
| | TechDraw::DrawBrokenViewPython::init();
|
| |
|
| | TechDraw::LineFormat::initCurrentLineFormat();
|
| |
|
| | PyMOD_Return(mod);
|
| | }
|
| |
|