TechDraw TemplateHowTo: Difference between revisions
Wandererfan (talk | contribs) No edit summary |
Wandererfan (talk | contribs) No edit summary |
||
Line 13: | Line 13: | ||
**set default units and page size units to mm (279.4 x 215.9) |
**set default units and page size units to mm (279.4 x 215.9) |
||
[[File:InkDocProp.png|800px|center]] |
[[File:InkDocProp.png|800px|center]] |
||
<br/> |
|||
*use the XML Editor to add freecad namespace clause to the <svg> item |
*use the XML Editor to add freecad namespace clause to the <svg> item |
||
**xmlns:freecad="http://www.freecadweb.org/wiki/index.php?title=Svg_Namespace " |
**xmlns:freecad="http://www.freecadweb.org/wiki/index.php?title=Svg_Namespace " |
||
[[File:InkXMLNameSpace.png|800px|center]] |
[[File:InkXMLNameSpace.png|800px|center]] |
||
<br/> |
|||
⚫ | |||
*draw outlines, zone numbers, centerlines, etc |
*draw outlines, zone numbers, centerlines, etc |
||
*draw the boxes and lines for the title block. |
*draw the boxes and lines for the title block. |
||
Line 25: | Line 23: | ||
*add and position your editable text |
*add and position your editable text |
||
[[File:InkFinishedArt.png|800px|center]] |
[[File:InkFinishedArt.png|800px|center]] |
||
<br/> |
|||
*use the XML Editor to add "freecad:editable" tag to each editable <text> item |
*use the XML Editor to add "freecad:editable" tag to each editable <text> item |
||
**assign a meaningful field name to each editable text |
**assign a meaningful field name to each editable text |
||
[[File:InkXMLeditableTag.png|800px|center]] |
[[File:InkXMLeditableTag.png|800px|center]] |
||
<br/> |
|||
*use XML editor to adjust viewbox to match your page size in mm |
*use XML editor to adjust viewbox to match your page size in mm |
||
[[File:InkXMLviewBox.png|800px|center]] |
[[File:InkXMLviewBox.png|800px|center]] |
||
<br/> |
|||
*your template will now appear much too big. |
*your template will now appear much too big. |
||
⚫ | |||
<br/> |
|||
⚫ | |||
*We need to shrink it. |
*We need to shrink it. |
||
**Edit>Select All in All Layers (or box select. make sure you select everything) |
**Edit>Select All in All Layers (or box select. make sure you select everything) |
||
Line 42: | Line 40: | ||
**use "Align and Distribute" or X/Y spinboxes to position artwork on page if required. |
**use "Align and Distribute" or X/Y spinboxes to position artwork on page if required. |
||
**your template should now look right. |
**your template should now look right. |
||
<br/> |
|||
*ensure that all your editable texts are "ungrouped" (shift-ctl-g) |
*ensure that all your editable texts are "ungrouped" (shift-ctl-g) |
||
*select everything on your page (box select or Edit>SelectAll) and Edit>Copy |
*select everything on your page (box select or Edit>SelectAll) and Edit>Copy |
||
*Layer>Delete Current Layer |
*Layer>Delete Current Layer |
||
*Edit>Paste in Place |
*Edit>Paste in Place |
||
<br/> |
|||
*Your template should now look right and shouldn't have any unwanted transforms |
*Your template should now look right and shouldn't have any unwanted transforms |
||
*Save your template |
*Save your template |
||
*try it in FreeCAD. |
*try it in FreeCAD. |
||
[[File:FCTemplateHow.png|center]] |
[[File:FCTemplateHow.png|center]] |
||
<br/> |
|||
===Notes=== |
|||
⚫ | |||
<!--T:10--> |
<!--T:10--> |
Revision as of 13:30, 8 February 2018
How to Make a TechDraw Template
This HowTo assumes you are familiar with FreeCAD, Inkscape and Svg.
We're going to make a simple template for US Letter size paper in landscape orientation.
- open a new document in Inkscape
- in Document Properties
- select a page size (US Letter) & orientation (landscape)
- set default units and page size units to mm (279.4 x 215.9)
- use the XML Editor to add freecad namespace clause to the <svg> item
- xmlns:freecad="http://www.freecadweb.org/wiki/index.php?title=Svg_Namespace "
- draw outlines, zone numbers, centerlines, etc
- draw the boxes and lines for the title block.
- add and position your static text
- add and position your editable text
- use the XML Editor to add "freecad:editable" tag to each editable <text> item
- assign a meaningful field name to each editable text
- use XML editor to adjust viewbox to match your page size in mm
- your template will now appear much too big.
- We need to shrink it.
- Edit>Select All in All Layers (or box select. make sure you select everything)
- adjust the W: and H: spinboxes to match your artwork's size in mm
- page-size less any applicable margins
- use "Align and Distribute" or X/Y spinboxes to position artwork on page if required.
- your template should now look right.
- ensure that all your editable texts are "ungrouped" (shift-ctl-g)
- select everything on your page (box select or Edit>SelectAll) and Edit>Copy
- Layer>Delete Current Layer
- Edit>Paste in Place
- Your template should now look right and shouldn't have any unwanted transforms
- Save your template
- try it in FreeCAD.
Notes
- Don't use Layers until you've mastered template creation without them. Layers (and Groups) can automatically insert unwanted transforms into your SVG.
Back to Templates.