Drawing templates

Creating templates for the Drawing module is very easy. They are svg files, created with any application capable of exporting svg files, such as Inkscape. Only two rules must be followed:
 * One pixel = one millimeter
 * You must insert, somewhere inside your svg code, where you want the contents of the drawing to appear (for example at the end of the file, just before the last tag), the following line:

In addition to these two rules, as of FreeCAD 0.14, Revision 2995, information about the Border and Title block can be added to the template for use by the orthographic projection tool. This information defines where FreeCAD can, and can not place the projections.

To define the Border, the following line must appear before the <metadata tag in the svg file.

Where X1, Y1, X2, Y2 are defined as:
 * X1 is the X axis distance from the left edge of the page to the left side of the Border.
 * Y1 is the Y axis distance from the top edge of the page the the top of the Border.
 * X2 is the X axis distance from the left edge of the page to the right side of the Border.
 * Y2 is the Y axis distance from the top edge of the page the the bottom of the Border.

To define the Title block the following line must be inserted before the = X2
 * Y1a <= Y1 or Y2a >= Y2

The following is an example of the code that defines the Working space and Title block areas that are to be inserted before the <metadata tag. You needn't specify a title block, but if you do it must be defined on the next line immediately following the Working space:


 * Several custom attributes can be placed in templates. The list of currently supported attributes is available on the Svg Namespace page.

Other standards available

 * ANSI templates: according to American National Standards Institute ANSI standard
 * Arch templates: according to American National Standards Institute Arch standard
 * Misc templates: mixed templates