Drawing templates: Difference between revisions

From FreeCAD Documentation
(<translate>)
Line 1: Line 1:
<translate>
Creating templates for the Drawing module is very easy. They are svg files, created with any application capable of exporting svg files, such as [http://www.inkscape.org Inkscape]. Only two rules must be followed:
Creating templates for the Drawing module is very easy. They are svg files, created with any application capable of exporting svg files, such as [http://www.inkscape.org Inkscape]. Only two rules must be followed:
* One pixel = one millimeter
* 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 </svg> tag), the following line:
* 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 </svg> tag), the following line:
</translate>
<nowiki><!-- DrawingContent --></nowiki>
<syntaxhighlight>
<!-- DrawingContent -->
</syntaxhighlight>
<translate>
* Several custom attributes can be placed in templates. The list of currently supported attributes is available on the [[Svg Namespace]] page.
* Several custom attributes can be placed in templates. The list of currently supported attributes is available on the [[Svg Namespace]] page.


Line 39: Line 44:
==Other standards available==
==Other standards available==


[[ANSI_templates]], [[Arch_templates]], [[Misc_templates]] and build
[[ANSI_templates|ANSI templates]], [[Arch_templates|Arch templates]], [[Misc_templates|Misc templates]] and build


{{languages | {{es|Drawing_templates/es}} {{fr|Drawing_templates/fr}} {{it|Drawing_templates/it}} {{se|Drawing_templates/se}} }}


[[Category:Documentation]]
[[Category:Documentation]]

</translate>
<languages/>

Revision as of 20:55, 9 January 2014

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 </svg> tag), the following line:
 <!-- DrawingContent -->
  • Several custom attributes can be placed in templates. The list of currently supported attributes is available on the Svg Namespace page.

A3 templates

A4 Templates

Landscape:

Portrait:

US Letter Templates

Landscape:

Portrait:

Other standards available

ANSI templates, Arch templates, Misc templates and build