Drawing templates/sv: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
(Updating to match new version of source page)
Line 5: Line 5:
<!-- DrawingContent -->
<!-- DrawingContent -->
</syntaxhighlight>
</syntaxhighlight>
In addition to these two rules, as of FreeCAD 0.14, Revision 3009, 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.
<syntaxhighlight>
<!-- Working space X1 Y1 X2 Y2 -->
</syntaxhighlight>
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.
[[File:XY_Working.png]]

To define the Title block the following line must be inserted before the <metadata tag and after the Working space tag.
<syntaxhighlight>
<!-- Title block X1a Y1a X2a Y2a -->
</syntaxhighlight>
Where X1a, Y1a, X2a, Y2a are defined as:
* X1a is the X axis distance from the left edge of the page to the left side of the Title block
* Y1a is the Y axis distance from the top edge of the page the the top of the Title block
* X2a is the X Axis distance from the left edge of the page to the right side of the Title block
* Y2a is the Y axis distance from the top edge of the page the the bottom of the Title block
* X1a <= X1 or X2a >= X2
* Y1a <= Y1 or Y2a >= Y2
[[File:XY_Title.png]]

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:
<syntaxhighlight>
<!-- Working space X1 Y1 X2 Y2 -->
<!-- Title block X1a Y1a X2a Y2a -->
</syntaxhighlight>

* 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.


== A3 mallar ==
== A3 mallar ==


=== A3 Classic: ===
[[Image:A3_Classic.svg|800px]]
[[Image:A3_Classic.svg|800px]]


=== A3 Clean: ===
[[Image:A3_Clean.svg|800px]]
[[Image:A3_Clean.svg|800px]]


=== A3 Modern: ===
[[Image:A3_Modern.svg|800px]]
[[Image:A3_Modern.svg|800px]]


=== A3 Showcase: ===
[[Image:A3_Showcase.svg|800px]]
[[Image:A3_Showcase.svg|800px]]


=== A3 Landscape english: ===
[[File:A3_Landscape_english.svg|800px]]
[[File:A3_Landscape_english.svg|800px]]


== A4 Templates ==
==A4 Templates ==


=== Landscape: ===
=== A4 Landscape english: ===


[[File:A4_Landscape_english.svg|800px]]
[[File:A4_Landscape_english.svg|800px]]


=== Portrait: ===
=== A4 Portrait 1 english:===


[[File:A4_Portrait_1_english.svg|400px]]
[[File:A4_Portrait_1_english.svg|400px]]


== US Letter Templates ==
==US Letter Templates ==


=== Landscape: ===
=== US Letter landscape: ===


[[File:US_Letter_landscape.svg|800px]]
[[File:US_Letter_landscape.svg|800px]]


=== Portrait: ===
=== US Letter portrait: ===


[[File:US_Letter_portrait.svg|400px]]
[[File:US_Letter_portrait.svg|400px]]

Revision as of 18:17, 12 January 2014

Att skapa mallar för Ritningsmodulen är mycket lätt. De är svg filer, som kan skapas med valfri applikation som är kapabel att exportera svg filer, Som inkscape. Endast två regler måste följas:

  • En pixel = en milimeter
  • Någonstans i svg koden så måste du sätta in var du vill att ritningsinnehållet ska synas (Till exempel i slutet av filen, precis innan den sista </svg> taggen), följande rad:
 <!-- DrawingContent -->

In addition to these two rules, as of FreeCAD 0.14, Revision 3009, 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.

<!-- Working space X1 Y1 X2 Y2 -->

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.

File:XY Working.png

To define the Title block the following line must be inserted before the <metadata tag and after the Working space tag.

<!-- Title block X1a Y1a X2a Y2a -->

Where X1a, Y1a, X2a, Y2a are defined as:

  • X1a is the X axis distance from the left edge of the page to the left side of the Title block
  • Y1a is the Y axis distance from the top edge of the page the the top of the Title block
  • X2a is the X Axis distance from the left edge of the page to the right side of the Title block
  • Y2a is the Y axis distance from the top edge of the page the the bottom of the Title block
  • X1a <= X1 or X2a >= X2
  • Y1a <= Y1 or Y2a >= Y2

File:XY Title.png

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:

<!-- Working space X1 Y1 X2 Y2 -->
<!-- Title block X1a Y1a X2a Y2a -->
  • Several custom attributes can be placed in templates. The list of currently supported attributes is available on the Svg Namespace page.

A3 mallar

A3 Classic:

A3 Clean:

A3 Modern:

A3 Showcase:

A3 Landscape english:

A4 Templates

A4 Landscape english:

A4 Portrait 1 english:

US Letter Templates

US Letter landscape:

US Letter portrait:

Other standards available