Download src/Mod/TechDraw/App/AppTechDraw.cpp from AbdulElahGwaith/FreeCAD: direct link, hf CLI and curl.
- Browser
- Download file 5.94 kB
-
https://huggingface.co/AbdulElahGwaith/FreeCAD/resolve/main/src/Mod/TechDraw/App/AppTechDraw.cpp
- Command line
-
hf download hf://AbdulElahGwaith/FreeCAD/src/Mod/TechDraw/App/AppTechDraw.cpp
-
curl -L -o AppTechDraw.cpp https://huggingface.co/AbdulElahGwaith/FreeCAD/resolve/main/src/Mod/TechDraw/App/AppTechDraw.cpp
5.94 kB
| /*************************************************************************** | |
| * Copyright (c) 2007 Jürgen Riegel <juergen.riegel@web.de> * | |
| * * | |
| * This library is free software; you can redistribute it and/or * | |
| * modify it under the terms of the GNU Library General Public * | |
| * License as published by the Free Software Foundation; either * | |
| * version 2 of the License, or (at your option) any later version. * | |
| * * | |
| * This library is distributed in the hope that it will be useful, * | |
| * but WITHOUT ANY WARRANTY; without even the implied warranty of * | |
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * | |
| * GNU Library General Public License for more details. * | |
| * * | |
| * You should have received a copy of the GNU Library General Public * | |
| * License along with this library; see the file COPYING.LIB. If not, * | |
| * write to the Free Software Foundation, Inc., 59 Temple Place, * | |
| * Suite 330, Boston, MA 02111-1307, USA * | |
| * * | |
| ***************************************************************************/ | |
| namespace TechDraw { | |
| extern PyObject* initModule(); | |
| } | |
| /* Python entry */ | |
| PyMOD_INIT_FUNC(TechDraw) | |
| { | |
| // load dependent module | |
| 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(); | |
| // are these python init calls required? some modules don't have them | |
| // Python Types | |
| 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); | |
| } | |