Draft Module

The draft Module is a work-in-progress and quite experimental module made to add basic 2d drawing functionality to FreeCAD. It is written entirely in python, and is also intended to showcase how far you can extend FreeCAD entirely in python, without even touching the source code. This module is currently developed outside of the main FreeCAD development structure but will be integrated soon.

Currently it is not really usable for production work, but already contains a couple of working basic functions. Feel free to test, and give us a feedback on the discussion page.

I also maintain a workplan of the whole thing here.

Installation
The draft Module is currently not part of the FreeCAD package, so you'll need to download the most recent version from here: http://yorik.orgfree.com/scripts/Draft.zip The zipfile here above contains just a "draft" directory. To install the module, simply place that draft directory into the "Mod" directory of FreeCAD, as explained in the Installing more workbenches page.

General use
Once installed, the draft workbench will be available in your workbenches list. When you activate it, two toolbars will appear; a classical toolbar containing the standard draft commands listed below and a special command bar that has no tool icon on it, but that is used by the different functions to display their controls. On that toolbar, you can also change general things like current line color and width.

Before starting
The Draft module doesn't work well in 3D at the moment. So, the best thing to do is to put yourself in orthographic 2D view before starting to draw. To do that, open or create a new document, then press the O key (or menu view -> orthographic view) to switch to orthographic mode. Then press the 2 key (or menu view -> standard views -> top) to put you in top view. Now, you are ready to draw. You can also configure freecad (menu edit -> preferences) to always start in orthographic mode.

Quickstart
All draft commands follow more or less the same rules: Drawing toos will ask you to pick points on the screen or enter numeric coordinates, while modification tools will ask you to choose an object to work on first, in case no object is selected. In almost all commands, pressing the Control key will allow you to snap to existing points, Shift will constrain your movement horizontally, verically or in relation to an existing segment, and in some tools Alt will give you extra options such as creating a new object instead of transforming an existing one. The Esc key will always cancel the active command. Below you will find a more complete description of all available tools:

Importing & exporting
These are functions for opening, importing or exporting other file formats. Opening will open a new document with the contents of the file, while importing will append the file content to the current document. Exporting will save the selected objects to a file. If nothing is selected, then all objects will be exported. Currently supported file formats are:


 * Autodesk .DXF
 * SVG (as geometry)
 * Open Cad format .OCA

Drawing objects
These are tools for creating objects.

2-point Line

Multiple-point Line (Polyline)

Circle

Arc

Rectangle

Text

Modifying objects
These are tools for modifying existing objects. They work on selected objects, but if no object is selected, you will be invited to select one.

Move

Rotate

Offset

Upgrade

Downgrade

Trim/Extend (Trimex)

Apply style

Common behaviours

 * Snapping
 * Constraining
 * Working with manual coordinates
 * Copying: All modification tools can either modify the selected objects or create a modified copy of them. Pressing ALT while using the tool will make a copy.