Drawing templates/cs: Difference between revisions

From FreeCAD Documentation
(Created page with "Pro definování rámečku výkresu se musí přesně před značku <metadata v souboru SVG objevit následující řádek.")
(Created page with "Kde X1, Y1, X2, Y2 jsou definovány jako: * X1 je vzdálenost od levého okraje stránky k levé straně rámečku v ose X. * Y1 je vzdálenost od horního okraje stránky k h...")
Line 11: Line 11:
<!-- Working space X1 Y1 X2 Y2 -->
<!-- Working space X1 Y1 X2 Y2 -->
</syntaxhighlight>
</syntaxhighlight>
Where X1, Y1, X2, Y2 are defined as:
Kde X1, Y1, X2, Y2 jsou definovány jako:
* X1 je vzdálenost od levého okraje stránky k levé straně rámečku v ose X.
* X1 is the X axis distance from the left edge of the page to the left side of the Border.
* Y1 je vzdálenost od horního okraje stránky k horní straně rámečku v ose Y.
* Y1 is the Y axis distance from the top edge of the page the the top of the Border.
* X2 je vzdálenost od levého okraje stránky k pravé straně rámečku v ose X.
* X2 is the X axis distance from the left edge of the page to the right side of the Border.
* Y2 je vzdálenost od horního okraje stránky ke spodní straně rámečku v ose Y.
* Y2 is the Y axis distance from the top edge of the page the the bottom of the Border.
[[File:XY_Working_v2.svg]]
[[File:XY_Working_v2.svg]]



Revision as of 16:52, 23 January 2014

Vytváření šablon pro modul Výkresy je velmi snadné. Koukněte na výukový program Výkres Šablona Jak. Šablony jsou SVG soubory, které jsou vytvořené nějakou aplikací schopnou vyexportovat SVG soubory, jako je třeba Inkscape. Musí být dodrženy pouze násleující 2 pravidla:

  • Jeden pixel = jeden millimeter
  • Ve vytvořeném SVG kódu musíte do místa kde chcete aby se zobrazoval Váš výkres (například na konec souboru před značku </svg>) vložit následující řádek:
 <!-- DrawingContent -->

Navíc k těmto dvěma pravidlům mohou být pro verze FreeCADu 0.14, revize 2995 do šablony přidány ještě informace o Pracovním prostoru a Popisovém poli pro nástroj ortografického zobrazení. tyto informace definují kam může a nemůže FreeCAD umístit zobrazení.

Pro definování rámečku výkresu se musí přesně před značku <metadata v souboru SVG objevit následující řádek.

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

Kde X1, Y1, X2, Y2 jsou definovány jako:

  • X1 je vzdálenost od levého okraje stránky k levé straně rámečku v ose X.
  • Y1 je vzdálenost od horního okraje stránky k horní straně rámečku v ose Y.
  • X2 je vzdálenost od levého okraje stránky k pravé straně rámečku v ose X.
  • Y2 je vzdálenost od horního okraje stránky ke spodní straně rámečku v ose Y.

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

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 templates

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:

US Letter ds Landscape:

US Legal ds Landscape:

US Ledger ds Landscape:

Other standards available