Both draftTools and 00065 draftGui are loaded at module init by InitGui.py, which is called directly by FreeCAD. Then, the draftTools 00063 are where the FreeCAD commands are defined, while in draftGui.py 00064 you have the ui part, ie. You 00062 should start there if you intend to modify something. 00060 00061 The Draft.py contains everything to create geometry in the scene. The 00049 Draft module is divided in several files: 00050 00051 - Draft.py: Hosts the functions that are useful for scripting outside of 00052 the Draft module, it is the "Draft API" 00053 - draftGui.py: Creates and manages the special Draft toolbar 00054 - draftTools.py: Contains the user tools of the Draft module (the commands 00055 from the Draft menu), and a couple of helpers such as the "Trackers" 00056 (temporary geometry used while drawing) 00057 - draftlibs/fcvec.py: a vector math library, contains functions that are not 00058 implemented in the standard FreeCAD vector 00059 - draftlibs/fcgeo.py: a library of misc functions to manipulate shapes. 00047 00048 If you want to have a look at the code, here is a general explanation. 00046 Suggestions are also welcome on the FreeCAD discussion forum. If you know a bit of python 00045 language, you are welcome to modify this module or to help us to improve it. This modules is made to be run 00036 inside FreeCAD and needs the PyQt4 and pivy modules available.
![freecad draft freecad draft](https://i.ytimg.com/vi/KvB8eStMwoM/maxresdefault.jpg)
00034 The aim is to give FreeCAD basic 2D-CAD capabilities (similar 00035 to Autocad and other similar software).
#Freecad draft license
See the * 00015 #* GNU Library General Public License for more details. * 00011 #* * 00012 #* This program is distributed in the hope that it will be useful, * 00013 #* but WITHOUT ANY WARRANTY without even the implied warranty of * 00014 #* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * 00010 #* for detail see the LICENCE text file.