TechDraw TemplateHowTo/de

Introduction
This tutorial shows you how to create an SVG file that can be used as the background template for the TechDraw Workbench pages.

Dieses Tutorial setzt moderates Kenntnisse in Inkscape und SVG sowie in FreeCAD und dem TechDraw-Arbeitsbereich voraus.

Wir erstellen ein einfaches Template für die Papiergrösse "US Letter Size" im Querformat.

Eine Kopie des Ergebnisses dieser Übung findet sich in

wobei das Verzeichnis ist, wo FreeCAD installiert wurde, z.B.

Basisdokument erzeugen
1. Öffne ein neues Dokument in Inkscape

2. In den Dokumenteneigenschaften
 * wähle ein Papierformat (US Letter) sowie eine Ausrichtung (Querformat)
 * stelle die Standardeinheiten und Seitengrösseneinheit auf mm (279.4 x 215.9)

3. Use the XML Editor to add a "freecad" namespace clause to the item.

Create template drawing
4. Draw outlines, zone numbers, center lines, and other geometry.

5. Draw the boxes and lines for the title block.

6. Add and position your static text.

7. Add and position the text that will be editable.

8. You now have your finished artwork, that should look something like this:

Create editable fields
9. Use the XML Editor to add a tag to each editable  item.
 * Assign a meaningful field name to each editable text.

Adjust size of the SVG
10. Use the XML editor to adjust the attribute to match your page size in millimeters.
 * It is four values, in the format

11. Your template will now appear much bigger than desired.

12. We need to shrink it.
 * , or box select and select all.
 * Adjust the and  spinboxes to match your artwork's size in millimeters.
 * Set it to the page size less any applicable margins, for example,, and.

13. Use "Align and Distribute" or the and  spinboxes to position the artwork within the limits of the page if required.

14. Your template should now look right, just like it did in the finished artwork picture above.

Remove transformans on the SVG
15. Ensure that all your editable texts are "ungrouped" with ++.

16. Select everything on your page,, and then.

17. Then delete the current layer,.

18. Then paste,.

19. Your template should now look right and shouldn't have any unwanted transforms.

20. Save your template.

21. Try it in FreeCAD and TechDraw Workbench with TechDraw New Pick.

Anmerkungen
Verwende keine Ebenen bevor du es nicht ohne Ebenen beherrscht. Ebenen und Gruppen können unerwünschte Transformationen verursachen.

See a Stackoverflow discussion on removing transform clauses in SVG files.