https://wiki.freecad.org/api.php?action=feedcontributions&user=Bravikov&feedformat=atomFreeCAD Documentation - User contributions [en]2024-03-28T21:12:07ZUser contributionsMediaWiki 1.40.1https://wiki.freecad.org/index.php?title=Drawing_templates/ru&diff=194643Drawing templates/ru2016-07-31T11:09:33Z<p>Bravikov: </p>
<hr />
<div><br />
== Создание SVG-шаблонов ==<br />
<br />
Создавать шаблоны для модуля чертежей (Drawing) легко и приятно. Смотрите также [[Drawing_Template_HowTo|руководство по созданию шаблонов чертежей]]. Шаблон — это файл в формате SVG, который можно создать в любой программе способной экспортировать SVG, например [http://www.inkscape.org Inkscape]. Необходимо соблюдать только два правила:<br />
* 1 пиксель = 1 миллиметру.<br />
* Где-нибудь в SVG-код, там где будет размещен чертеж, требуется вставить (например, в конец файла перед тегом </svg>) следующую строку:<br />
<syntaxhighlight><br />
<!-- DrawingContent --><br />
</syntaxhighlight><br />
Дополнительно, начиная с FreeCAD 0.14 (ревизия 2995), в SVG-коде можно указать положение рамки и основной надписи. Так FreeCAD будет знать где можно располагать проекции, а где нет.<br />
<br />
Чтобы задать положение рамки, необходимо вставить следующую строку перед тегом <metadata>:<br />
<syntaxhighlight><br />
<!-- Working space X1 Y1 X2 Y2 --><br />
</syntaxhighlight><br />
Где:<br />
* X1 — расстояние по оси X между левой границей листа и левой стороной рамки.<br />
* Y1 — расстояние по оси Y между верхней границей листа и верхней стороной рамки.<br />
* X2 — расстояние по оси X между левой границей листа и правой стороной рамки.<br />
* Y2 — расстояние по оси Y между верхней границей листа и нижней стороной рамки.<br />
[[File:XY_Working_v2.svg]]<br />
<br />
Чтобы задать положение основной надписи, необходимо вставить следующую строку перед тегом <metadata>:<br />
<syntaxhighlight><br />
<!-- Title block X1a Y1a X2a Y2a --><br />
</syntaxhighlight><br />
Где:<br />
* X1a — расстояние по оси X между левой границей листа и левой стороной основной надписи.<br />
* Y1a — расстояние по оси Y между верхней границей листа и верхней стороной основной надписи.<br />
* X2a — расстояние по оси X между левой границей листа и правой стороной основной надписи.<br />
* Y2a — расстояние по оси Y между верхней границей листа и нижней стороной основной надписи.<br />
* X1a <= X1 или X2a >= X2.<br />
* Y1a <= Y1 или Y2a >= Y2.<br />
[[File:XY_Title_v2.svg]]<br />
<br />
Положение основной надписи нужно задавать сразу после задания положения рамки:<br />
<syntaxhighlight><br />
<!-- Working space X1 Y1 X2 Y2 --><br />
<!-- Title block X1a Y1a X2a Y2a --><br />
</syntaxhighlight><br />
<br />
In order to enable up to scale printing, the real word size has to be given in the width and height attributes of the SVG-Tag. The size of the document in user units, (px), has to be given in the viewBox attribute.<br />
<br />
* xxx = ширина в пикселях,<br />
* yyy = высота в пикселях.<br />
<syntaxhighlight><br />
width="xxxmm"<br />
height="yyymm"<br />
viewBox="0 0 xxx yyy"<br />
</syntaxhighlight><br />
<br />
В шаблоны можно добавлять пользовательские атрибуты. Список атрибутов смотрите в статье [[Svg Namespace]].<br />
<br />
== DXF templates ==<br />
<br />
Since version 0.15, FreeCAD can reliably export a [[Drawing Module|Drawing]] page to the DXF format. This system also uses templates. If a dxf file with the same name is found in the same folder as the SVG template used for a page, it will be used for export. If not, a default empty template is created on the fly.<br />
<br />
Consequently, if you create your own SVG templates, and wish to be able to export the Drawing pages that you create with it to DXF, you just need to create a corresponding DXF template, and save it with the same name in the same folder.<br />
<br />
DXF templates can be created with any application that produces DXF files, such as LibreCAD. You then need to edit them with a text editor, and add two additional lines, one at the beginning or end of the BLOCKS section, and another at the beginning or end of the ENTITIES section, which are where FreeCAD will add its own blocks and entities.<br />
<br />
A very simple template looks like this:<br />
<br />
999<br />
FreeCAD DXF exporter v0.15<br />
0<br />
SECTION<br />
2<br />
HEADER<br />
9<br />
$ACADVER<br />
1<br />
AC1009<br />
0<br />
ENDSEC<br />
0<br />
SECTION<br />
2<br />
BLOCKS<br />
$blocks<br />
0<br />
ENDSEC<br />
0<br />
SECTION<br />
2<br />
ENTITIES<br />
$entities<br />
0<br />
ENDSEC<br />
0<br />
EOF<br />
<br />
The above template doesn't contain any entity. If you create your DXF file with a CAD application, there will likely be much more content inside the HEADER, BLOCKS and ENTITIES sections.<br />
<br />
The two lines that FreeCAD will be looking for are "$blocks" and "$entities". They must exist in the template, and they must be placed on their own line. You can choose to place them right after the BLOCKS or ENTITIES line, which is easier (just use the "search" function of your text editor to find them), or at the end, just before the "0 ENDSEC" lines (beware that there is one for each SECTION, make sure to use the ones relative to BLOCKS and ENTITIES). The latter method will place the FreeCAD objects after the objects defined in the template, which might be more logical.<br />
<br />
==A3 templates ==<br />
<br />
=== A3 Classic: ===<br />
[[Image:A3_Classic.svg|800px]]<br />
<br />
=== A3 Clean: ===<br />
[[Image:A3_Clean.svg|800px]]<br />
<br />
=== A3 Modern: ===<br />
[[Image:A3_Modern.svg|800px]]<br />
<br />
=== A3 Showcase: ===<br />
[[Image:A3_Showcase.svg|800px]]<br />
<br />
=== A3 Landscape english: ===<br />
[[File:A3_Landscape_english.svg|800px]]<br />
<br />
==A4 Templates ==<br />
<br />
=== A4 Landscape english: ===<br />
<br />
[[File:A4_Landscape_english.svg|800px]]<br />
<br />
=== A4 Portrait 1 english:===<br />
<br />
[[File:A4_Portrait_1_english.svg|400px]]<br />
<br />
==US Letter Templates ==<br />
<br />
=== US Letter landscape: ===<br />
<br />
[[File:US_Letter_landscape.svg|800px]]<br />
<br />
<br />
=== US Letter portrait: ===<br />
<br />
[[File:US_Letter_portrait.svg|400px]]<br />
<br />
=== US Letter ds Landscape: ===<br />
<br />
[[File:US_Letter_ds_Landscape.svg|800px]]<br />
<br />
=== US Legal ds Landscape: ===<br />
<br />
[[File:US_Legal_ds_Landscape.svg|800px]]<br />
<br />
=== US Ledger ds Landscape: ===<br />
<br />
[[File:US_Ledger_ds_Landscape.svg|800px]]<br />
<br />
==Other standards available==<br />
<br />
* [[ANSI_templates|ANSI templates]]: according to American National Standards Institute [http://en.wikipedia.org/wiki/American_National_Standards_Institute ANSI] standard<br />
* [[Arch_templates|Arch templates]]: according to American National Standards Institute [http://en.wikipedia.org/wiki/American_National_Standards_Institute Arch] standard <br />
* [[Misc_templates|Misc templates]]: mixed templates<br />
<br />
<br />
[[Category:Documentation]]<br />
<br />
<languages/></div>Bravikovhttps://wiki.freecad.org/index.php?title=Translations:Drawing_templates/2/ru&diff=194642Translations:Drawing templates/2/ru2016-07-31T11:09:32Z<p>Bravikov: </p>
<hr />
<div>В шаблоны можно добавлять пользовательские атрибуты. Список атрибутов смотрите в статье [[Svg Namespace]].</div>Bravikovhttps://wiki.freecad.org/index.php?title=Drawing_templates/ru&diff=194641Drawing templates/ru2016-07-31T11:09:13Z<p>Bravikov: Created page with "В шаблоны можно добавлять пользовательские атрибуты. Список атрибутов доступен в статье Svg Names..."</p>
<hr />
<div><br />
== Создание SVG-шаблонов ==<br />
<br />
Создавать шаблоны для модуля чертежей (Drawing) легко и приятно. Смотрите также [[Drawing_Template_HowTo|руководство по созданию шаблонов чертежей]]. Шаблон — это файл в формате SVG, который можно создать в любой программе способной экспортировать SVG, например [http://www.inkscape.org Inkscape]. Необходимо соблюдать только два правила:<br />
* 1 пиксель = 1 миллиметру.<br />
* Где-нибудь в SVG-код, там где будет размещен чертеж, требуется вставить (например, в конец файла перед тегом </svg>) следующую строку:<br />
<syntaxhighlight><br />
<!-- DrawingContent --><br />
</syntaxhighlight><br />
Дополнительно, начиная с FreeCAD 0.14 (ревизия 2995), в SVG-коде можно указать положение рамки и основной надписи. Так FreeCAD будет знать где можно располагать проекции, а где нет.<br />
<br />
Чтобы задать положение рамки, необходимо вставить следующую строку перед тегом <metadata>:<br />
<syntaxhighlight><br />
<!-- Working space X1 Y1 X2 Y2 --><br />
</syntaxhighlight><br />
Где:<br />
* X1 — расстояние по оси X между левой границей листа и левой стороной рамки.<br />
* Y1 — расстояние по оси Y между верхней границей листа и верхней стороной рамки.<br />
* X2 — расстояние по оси X между левой границей листа и правой стороной рамки.<br />
* Y2 — расстояние по оси Y между верхней границей листа и нижней стороной рамки.<br />
[[File:XY_Working_v2.svg]]<br />
<br />
Чтобы задать положение основной надписи, необходимо вставить следующую строку перед тегом <metadata>:<br />
<syntaxhighlight><br />
<!-- Title block X1a Y1a X2a Y2a --><br />
</syntaxhighlight><br />
Где:<br />
* X1a — расстояние по оси X между левой границей листа и левой стороной основной надписи.<br />
* Y1a — расстояние по оси Y между верхней границей листа и верхней стороной основной надписи.<br />
* X2a — расстояние по оси X между левой границей листа и правой стороной основной надписи.<br />
* Y2a — расстояние по оси Y между верхней границей листа и нижней стороной основной надписи.<br />
* X1a <= X1 или X2a >= X2.<br />
* Y1a <= Y1 или Y2a >= Y2.<br />
[[File:XY_Title_v2.svg]]<br />
<br />
Положение основной надписи нужно задавать сразу после задания положения рамки:<br />
<syntaxhighlight><br />
<!-- Working space X1 Y1 X2 Y2 --><br />
<!-- Title block X1a Y1a X2a Y2a --><br />
</syntaxhighlight><br />
<br />
In order to enable up to scale printing, the real word size has to be given in the width and height attributes of the SVG-Tag. The size of the document in user units, (px), has to be given in the viewBox attribute.<br />
<br />
* xxx = ширина в пикселях,<br />
* yyy = высота в пикселях.<br />
<syntaxhighlight><br />
width="xxxmm"<br />
height="yyymm"<br />
viewBox="0 0 xxx yyy"<br />
</syntaxhighlight><br />
<br />
В шаблоны можно добавлять пользовательские атрибуты. Список атрибутов доступен в статье [[Svg Namespace]].<br />
<br />
== DXF templates ==<br />
<br />
Since version 0.15, FreeCAD can reliably export a [[Drawing Module|Drawing]] page to the DXF format. This system also uses templates. If a dxf file with the same name is found in the same folder as the SVG template used for a page, it will be used for export. If not, a default empty template is created on the fly.<br />
<br />
Consequently, if you create your own SVG templates, and wish to be able to export the Drawing pages that you create with it to DXF, you just need to create a corresponding DXF template, and save it with the same name in the same folder.<br />
<br />
DXF templates can be created with any application that produces DXF files, such as LibreCAD. You then need to edit them with a text editor, and add two additional lines, one at the beginning or end of the BLOCKS section, and another at the beginning or end of the ENTITIES section, which are where FreeCAD will add its own blocks and entities.<br />
<br />
A very simple template looks like this:<br />
<br />
999<br />
FreeCAD DXF exporter v0.15<br />
0<br />
SECTION<br />
2<br />
HEADER<br />
9<br />
$ACADVER<br />
1<br />
AC1009<br />
0<br />
ENDSEC<br />
0<br />
SECTION<br />
2<br />
BLOCKS<br />
$blocks<br />
0<br />
ENDSEC<br />
0<br />
SECTION<br />
2<br />
ENTITIES<br />
$entities<br />
0<br />
ENDSEC<br />
0<br />
EOF<br />
<br />
The above template doesn't contain any entity. If you create your DXF file with a CAD application, there will likely be much more content inside the HEADER, BLOCKS and ENTITIES sections.<br />
<br />
The two lines that FreeCAD will be looking for are "$blocks" and "$entities". They must exist in the template, and they must be placed on their own line. You can choose to place them right after the BLOCKS or ENTITIES line, which is easier (just use the "search" function of your text editor to find them), or at the end, just before the "0 ENDSEC" lines (beware that there is one for each SECTION, make sure to use the ones relative to BLOCKS and ENTITIES). The latter method will place the FreeCAD objects after the objects defined in the template, which might be more logical.<br />
<br />
==A3 templates ==<br />
<br />
=== A3 Classic: ===<br />
[[Image:A3_Classic.svg|800px]]<br />
<br />
=== A3 Clean: ===<br />
[[Image:A3_Clean.svg|800px]]<br />
<br />
=== A3 Modern: ===<br />
[[Image:A3_Modern.svg|800px]]<br />
<br />
=== A3 Showcase: ===<br />
[[Image:A3_Showcase.svg|800px]]<br />
<br />
=== A3 Landscape english: ===<br />
[[File:A3_Landscape_english.svg|800px]]<br />
<br />
==A4 Templates ==<br />
<br />
=== A4 Landscape english: ===<br />
<br />
[[File:A4_Landscape_english.svg|800px]]<br />
<br />
=== A4 Portrait 1 english:===<br />
<br />
[[File:A4_Portrait_1_english.svg|400px]]<br />
<br />
==US Letter Templates ==<br />
<br />
=== US Letter landscape: ===<br />
<br />
[[File:US_Letter_landscape.svg|800px]]<br />
<br />
<br />
=== US Letter portrait: ===<br />
<br />
[[File:US_Letter_portrait.svg|400px]]<br />
<br />
=== US Letter ds Landscape: ===<br />
<br />
[[File:US_Letter_ds_Landscape.svg|800px]]<br />
<br />
=== US Legal ds Landscape: ===<br />
<br />
[[File:US_Legal_ds_Landscape.svg|800px]]<br />
<br />
=== US Ledger ds Landscape: ===<br />
<br />
[[File:US_Ledger_ds_Landscape.svg|800px]]<br />
<br />
==Other standards available==<br />
<br />
* [[ANSI_templates|ANSI templates]]: according to American National Standards Institute [http://en.wikipedia.org/wiki/American_National_Standards_Institute ANSI] standard<br />
* [[Arch_templates|Arch templates]]: according to American National Standards Institute [http://en.wikipedia.org/wiki/American_National_Standards_Institute Arch] standard <br />
* [[Misc_templates|Misc templates]]: mixed templates<br />
<br />
<br />
[[Category:Documentation]]<br />
<br />
<languages/></div>Bravikovhttps://wiki.freecad.org/index.php?title=Translations:Drawing_templates/2/ru&diff=194640Translations:Drawing templates/2/ru2016-07-31T11:09:13Z<p>Bravikov: Created page with "В шаблоны можно добавлять пользовательские атрибуты. Список атрибутов доступен в статье Svg Names..."</p>
<hr />
<div>В шаблоны можно добавлять пользовательские атрибуты. Список атрибутов доступен в статье [[Svg Namespace]].</div>Bravikovhttps://wiki.freecad.org/index.php?title=Drawing_templates/ru&diff=194639Drawing templates/ru2016-07-31T11:05:59Z<p>Bravikov: Created page with "* xxx = ширина в пикселях, * yyy = высота в пикселях."</p>
<hr />
<div><br />
== Создание SVG-шаблонов ==<br />
<br />
Создавать шаблоны для модуля чертежей (Drawing) легко и приятно. Смотрите также [[Drawing_Template_HowTo|руководство по созданию шаблонов чертежей]]. Шаблон — это файл в формате SVG, который можно создать в любой программе способной экспортировать SVG, например [http://www.inkscape.org Inkscape]. Необходимо соблюдать только два правила:<br />
* 1 пиксель = 1 миллиметру.<br />
* Где-нибудь в SVG-код, там где будет размещен чертеж, требуется вставить (например, в конец файла перед тегом </svg>) следующую строку:<br />
<syntaxhighlight><br />
<!-- DrawingContent --><br />
</syntaxhighlight><br />
Дополнительно, начиная с FreeCAD 0.14 (ревизия 2995), в SVG-коде можно указать положение рамки и основной надписи. Так FreeCAD будет знать где можно располагать проекции, а где нет.<br />
<br />
Чтобы задать положение рамки, необходимо вставить следующую строку перед тегом <metadata>:<br />
<syntaxhighlight><br />
<!-- Working space X1 Y1 X2 Y2 --><br />
</syntaxhighlight><br />
Где:<br />
* X1 — расстояние по оси X между левой границей листа и левой стороной рамки.<br />
* Y1 — расстояние по оси Y между верхней границей листа и верхней стороной рамки.<br />
* X2 — расстояние по оси X между левой границей листа и правой стороной рамки.<br />
* Y2 — расстояние по оси Y между верхней границей листа и нижней стороной рамки.<br />
[[File:XY_Working_v2.svg]]<br />
<br />
Чтобы задать положение основной надписи, необходимо вставить следующую строку перед тегом <metadata>:<br />
<syntaxhighlight><br />
<!-- Title block X1a Y1a X2a Y2a --><br />
</syntaxhighlight><br />
Где:<br />
* X1a — расстояние по оси X между левой границей листа и левой стороной основной надписи.<br />
* Y1a — расстояние по оси Y между верхней границей листа и верхней стороной основной надписи.<br />
* X2a — расстояние по оси X между левой границей листа и правой стороной основной надписи.<br />
* Y2a — расстояние по оси Y между верхней границей листа и нижней стороной основной надписи.<br />
* X1a <= X1 или X2a >= X2.<br />
* Y1a <= Y1 или Y2a >= Y2.<br />
[[File:XY_Title_v2.svg]]<br />
<br />
Положение основной надписи нужно задавать сразу после задания положения рамки:<br />
<syntaxhighlight><br />
<!-- Working space X1 Y1 X2 Y2 --><br />
<!-- Title block X1a Y1a X2a Y2a --><br />
</syntaxhighlight><br />
<br />
In order to enable up to scale printing, the real word size has to be given in the width and height attributes of the SVG-Tag. The size of the document in user units, (px), has to be given in the viewBox attribute.<br />
<br />
* xxx = ширина в пикселях,<br />
* yyy = высота в пикселях.<br />
<syntaxhighlight><br />
width="xxxmm"<br />
height="yyymm"<br />
viewBox="0 0 xxx yyy"<br />
</syntaxhighlight><br />
<br />
* Several custom attributes can be placed in templates. The list of currently supported attributes is available on the [[Svg Namespace]] page.<br />
<br />
== DXF templates ==<br />
<br />
Since version 0.15, FreeCAD can reliably export a [[Drawing Module|Drawing]] page to the DXF format. This system also uses templates. If a dxf file with the same name is found in the same folder as the SVG template used for a page, it will be used for export. If not, a default empty template is created on the fly.<br />
<br />
Consequently, if you create your own SVG templates, and wish to be able to export the Drawing pages that you create with it to DXF, you just need to create a corresponding DXF template, and save it with the same name in the same folder.<br />
<br />
DXF templates can be created with any application that produces DXF files, such as LibreCAD. You then need to edit them with a text editor, and add two additional lines, one at the beginning or end of the BLOCKS section, and another at the beginning or end of the ENTITIES section, which are where FreeCAD will add its own blocks and entities.<br />
<br />
A very simple template looks like this:<br />
<br />
999<br />
FreeCAD DXF exporter v0.15<br />
0<br />
SECTION<br />
2<br />
HEADER<br />
9<br />
$ACADVER<br />
1<br />
AC1009<br />
0<br />
ENDSEC<br />
0<br />
SECTION<br />
2<br />
BLOCKS<br />
$blocks<br />
0<br />
ENDSEC<br />
0<br />
SECTION<br />
2<br />
ENTITIES<br />
$entities<br />
0<br />
ENDSEC<br />
0<br />
EOF<br />
<br />
The above template doesn't contain any entity. If you create your DXF file with a CAD application, there will likely be much more content inside the HEADER, BLOCKS and ENTITIES sections.<br />
<br />
The two lines that FreeCAD will be looking for are "$blocks" and "$entities". They must exist in the template, and they must be placed on their own line. You can choose to place them right after the BLOCKS or ENTITIES line, which is easier (just use the "search" function of your text editor to find them), or at the end, just before the "0 ENDSEC" lines (beware that there is one for each SECTION, make sure to use the ones relative to BLOCKS and ENTITIES). The latter method will place the FreeCAD objects after the objects defined in the template, which might be more logical.<br />
<br />
==A3 templates ==<br />
<br />
=== A3 Classic: ===<br />
[[Image:A3_Classic.svg|800px]]<br />
<br />
=== A3 Clean: ===<br />
[[Image:A3_Clean.svg|800px]]<br />
<br />
=== A3 Modern: ===<br />
[[Image:A3_Modern.svg|800px]]<br />
<br />
=== A3 Showcase: ===<br />
[[Image:A3_Showcase.svg|800px]]<br />
<br />
=== A3 Landscape english: ===<br />
[[File:A3_Landscape_english.svg|800px]]<br />
<br />
==A4 Templates ==<br />
<br />
=== A4 Landscape english: ===<br />
<br />
[[File:A4_Landscape_english.svg|800px]]<br />
<br />
=== A4 Portrait 1 english:===<br />
<br />
[[File:A4_Portrait_1_english.svg|400px]]<br />
<br />
==US Letter Templates ==<br />
<br />
=== US Letter landscape: ===<br />
<br />
[[File:US_Letter_landscape.svg|800px]]<br />
<br />
<br />
=== US Letter portrait: ===<br />
<br />
[[File:US_Letter_portrait.svg|400px]]<br />
<br />
=== US Letter ds Landscape: ===<br />
<br />
[[File:US_Letter_ds_Landscape.svg|800px]]<br />
<br />
=== US Legal ds Landscape: ===<br />
<br />
[[File:US_Legal_ds_Landscape.svg|800px]]<br />
<br />
=== US Ledger ds Landscape: ===<br />
<br />
[[File:US_Ledger_ds_Landscape.svg|800px]]<br />
<br />
==Other standards available==<br />
<br />
* [[ANSI_templates|ANSI templates]]: according to American National Standards Institute [http://en.wikipedia.org/wiki/American_National_Standards_Institute ANSI] standard<br />
* [[Arch_templates|Arch templates]]: according to American National Standards Institute [http://en.wikipedia.org/wiki/American_National_Standards_Institute Arch] standard <br />
* [[Misc_templates|Misc templates]]: mixed templates<br />
<br />
<br />
[[Category:Documentation]]<br />
<br />
<languages/></div>Bravikovhttps://wiki.freecad.org/index.php?title=Translations:Drawing_templates/35/ru&diff=194638Translations:Drawing templates/35/ru2016-07-31T11:05:59Z<p>Bravikov: Created page with "* xxx = ширина в пикселях, * yyy = высота в пикселях."</p>
<hr />
<div>* xxx = ширина в пикселях,<br />
* yyy = высота в пикселях.</div>Bravikovhttps://wiki.freecad.org/index.php?title=Drawing_templates/ru&diff=194637Drawing templates/ru2016-07-31T11:03:30Z<p>Bravikov: Created page with "Положение основной надписи нужно задавать сразу после задания положения рамки:"</p>
<hr />
<div><br />
== Создание SVG-шаблонов ==<br />
<br />
Создавать шаблоны для модуля чертежей (Drawing) легко и приятно. Смотрите также [[Drawing_Template_HowTo|руководство по созданию шаблонов чертежей]]. Шаблон — это файл в формате SVG, который можно создать в любой программе способной экспортировать SVG, например [http://www.inkscape.org Inkscape]. Необходимо соблюдать только два правила:<br />
* 1 пиксель = 1 миллиметру.<br />
* Где-нибудь в SVG-код, там где будет размещен чертеж, требуется вставить (например, в конец файла перед тегом </svg>) следующую строку:<br />
<syntaxhighlight><br />
<!-- DrawingContent --><br />
</syntaxhighlight><br />
Дополнительно, начиная с FreeCAD 0.14 (ревизия 2995), в SVG-коде можно указать положение рамки и основной надписи. Так FreeCAD будет знать где можно располагать проекции, а где нет.<br />
<br />
Чтобы задать положение рамки, необходимо вставить следующую строку перед тегом <metadata>:<br />
<syntaxhighlight><br />
<!-- Working space X1 Y1 X2 Y2 --><br />
</syntaxhighlight><br />
Где:<br />
* X1 — расстояние по оси X между левой границей листа и левой стороной рамки.<br />
* Y1 — расстояние по оси Y между верхней границей листа и верхней стороной рамки.<br />
* X2 — расстояние по оси X между левой границей листа и правой стороной рамки.<br />
* Y2 — расстояние по оси Y между верхней границей листа и нижней стороной рамки.<br />
[[File:XY_Working_v2.svg]]<br />
<br />
Чтобы задать положение основной надписи, необходимо вставить следующую строку перед тегом <metadata>:<br />
<syntaxhighlight><br />
<!-- Title block X1a Y1a X2a Y2a --><br />
</syntaxhighlight><br />
Где:<br />
* X1a — расстояние по оси X между левой границей листа и левой стороной основной надписи.<br />
* Y1a — расстояние по оси Y между верхней границей листа и верхней стороной основной надписи.<br />
* X2a — расстояние по оси X между левой границей листа и правой стороной основной надписи.<br />
* Y2a — расстояние по оси Y между верхней границей листа и нижней стороной основной надписи.<br />
* X1a <= X1 или X2a >= X2.<br />
* Y1a <= Y1 или Y2a >= Y2.<br />
[[File:XY_Title_v2.svg]]<br />
<br />
Положение основной надписи нужно задавать сразу после задания положения рамки:<br />
<syntaxhighlight><br />
<!-- Working space X1 Y1 X2 Y2 --><br />
<!-- Title block X1a Y1a X2a Y2a --><br />
</syntaxhighlight><br />
<br />
In order to enable up to scale printing, the real word size has to be given in the width and height attributes of the SVG-Tag. The size of the document in user units, (px), has to be given in the viewBox attribute.<br />
<br />
The following is to be formatted like the example below where:<br />
* xxx = pixel width<br />
* yyy = pixel height<br />
<syntaxhighlight><br />
width="xxxmm"<br />
height="yyymm"<br />
viewBox="0 0 xxx yyy"<br />
</syntaxhighlight><br />
<br />
* Several custom attributes can be placed in templates. The list of currently supported attributes is available on the [[Svg Namespace]] page.<br />
<br />
== DXF templates ==<br />
<br />
Since version 0.15, FreeCAD can reliably export a [[Drawing Module|Drawing]] page to the DXF format. This system also uses templates. If a dxf file with the same name is found in the same folder as the SVG template used for a page, it will be used for export. If not, a default empty template is created on the fly.<br />
<br />
Consequently, if you create your own SVG templates, and wish to be able to export the Drawing pages that you create with it to DXF, you just need to create a corresponding DXF template, and save it with the same name in the same folder.<br />
<br />
DXF templates can be created with any application that produces DXF files, such as LibreCAD. You then need to edit them with a text editor, and add two additional lines, one at the beginning or end of the BLOCKS section, and another at the beginning or end of the ENTITIES section, which are where FreeCAD will add its own blocks and entities.<br />
<br />
A very simple template looks like this:<br />
<br />
999<br />
FreeCAD DXF exporter v0.15<br />
0<br />
SECTION<br />
2<br />
HEADER<br />
9<br />
$ACADVER<br />
1<br />
AC1009<br />
0<br />
ENDSEC<br />
0<br />
SECTION<br />
2<br />
BLOCKS<br />
$blocks<br />
0<br />
ENDSEC<br />
0<br />
SECTION<br />
2<br />
ENTITIES<br />
$entities<br />
0<br />
ENDSEC<br />
0<br />
EOF<br />
<br />
The above template doesn't contain any entity. If you create your DXF file with a CAD application, there will likely be much more content inside the HEADER, BLOCKS and ENTITIES sections.<br />
<br />
The two lines that FreeCAD will be looking for are "$blocks" and "$entities". They must exist in the template, and they must be placed on their own line. You can choose to place them right after the BLOCKS or ENTITIES line, which is easier (just use the "search" function of your text editor to find them), or at the end, just before the "0 ENDSEC" lines (beware that there is one for each SECTION, make sure to use the ones relative to BLOCKS and ENTITIES). The latter method will place the FreeCAD objects after the objects defined in the template, which might be more logical.<br />
<br />
==A3 templates ==<br />
<br />
=== A3 Classic: ===<br />
[[Image:A3_Classic.svg|800px]]<br />
<br />
=== A3 Clean: ===<br />
[[Image:A3_Clean.svg|800px]]<br />
<br />
=== A3 Modern: ===<br />
[[Image:A3_Modern.svg|800px]]<br />
<br />
=== A3 Showcase: ===<br />
[[Image:A3_Showcase.svg|800px]]<br />
<br />
=== A3 Landscape english: ===<br />
[[File:A3_Landscape_english.svg|800px]]<br />
<br />
==A4 Templates ==<br />
<br />
=== A4 Landscape english: ===<br />
<br />
[[File:A4_Landscape_english.svg|800px]]<br />
<br />
=== A4 Portrait 1 english:===<br />
<br />
[[File:A4_Portrait_1_english.svg|400px]]<br />
<br />
==US Letter Templates ==<br />
<br />
=== US Letter landscape: ===<br />
<br />
[[File:US_Letter_landscape.svg|800px]]<br />
<br />
<br />
=== US Letter portrait: ===<br />
<br />
[[File:US_Letter_portrait.svg|400px]]<br />
<br />
=== US Letter ds Landscape: ===<br />
<br />
[[File:US_Letter_ds_Landscape.svg|800px]]<br />
<br />
=== US Legal ds Landscape: ===<br />
<br />
[[File:US_Legal_ds_Landscape.svg|800px]]<br />
<br />
=== US Ledger ds Landscape: ===<br />
<br />
[[File:US_Ledger_ds_Landscape.svg|800px]]<br />
<br />
==Other standards available==<br />
<br />
* [[ANSI_templates|ANSI templates]]: according to American National Standards Institute [http://en.wikipedia.org/wiki/American_National_Standards_Institute ANSI] standard<br />
* [[Arch_templates|Arch templates]]: according to American National Standards Institute [http://en.wikipedia.org/wiki/American_National_Standards_Institute Arch] standard <br />
* [[Misc_templates|Misc templates]]: mixed templates<br />
<br />
<br />
[[Category:Documentation]]<br />
<br />
<languages/></div>Bravikovhttps://wiki.freecad.org/index.php?title=Translations:Drawing_templates/27/ru&diff=194636Translations:Drawing templates/27/ru2016-07-31T11:03:28Z<p>Bravikov: Created page with "Положение основной надписи нужно задавать сразу после задания положения рамки:"</p>
<hr />
<div>Положение основной надписи нужно задавать сразу после задания положения рамки:</div>Bravikovhttps://wiki.freecad.org/index.php?title=Drawing_templates&diff=194635Drawing templates2016-07-31T10:48:21Z<p>Bravikov: Fixed "<metadata tag".</p>
<hr />
<div><translate><br />
<br />
== SVG templates creation == <!--T:36--><br />
<br />
<!--T:1--><br />
Creating templates for the Drawing module is very easy. See also the tutorial [[Drawing_Template_HowTo]]. Templates 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:<br />
* One pixel = one millimeter<br />
* 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:<br />
</translate><br />
<syntaxhighlight><br />
<!-- DrawingContent --><br />
</syntaxhighlight><br />
<translate><br />
<!--T:22--><br />
In addition to these two rules, as of FreeCAD 0.14, Revision 2995, 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.<br />
<br />
<!--T:23--><br />
To define the Border, the following line must appear before the <metadata> tag in the svg file.<br />
</translate><br />
<syntaxhighlight><br />
<!-- Working space X1 Y1 X2 Y2 --><br />
</syntaxhighlight><br />
<translate><br />
<!--T:24--><br />
Where X1, Y1, X2, Y2 are defined as:<br />
* X1 is the X axis distance from the left edge of the page to the left side of the Border.<br />
* Y1 is the Y axis distance from the top edge of the page to the top of the Border.<br />
* X2 is the X axis distance from the left edge of the page to the right side of the Border.<br />
* Y2 is the Y axis distance from the top edge of the page to the bottom of the Border.<br />
</translate><br />
[[File:XY_Working_v2.svg]]<br />
<br />
<translate><br />
<!--T:25--><br />
To define the Title block the following line must be inserted before the <metadata> tag and after the Working space tag.<br />
</translate><br />
<syntaxhighlight><br />
<!-- Title block X1a Y1a X2a Y2a --><br />
</syntaxhighlight><br />
<translate><br />
<!--T:26--><br />
Where X1a, Y1a, X2a, Y2a are defined as:<br />
* X1a is the X axis distance from the left edge of the page to the left side of the Title block<br />
* Y1a is the Y axis distance from the top edge of the page to the top of the Title block<br />
* X2a is the X Axis distance from the left edge of the page to the right side of the Title block<br />
* Y2a is the Y axis distance from the top edge of the page to the bottom of the Title block<br />
* X1a <= X1 or X2a >= X2<br />
* Y1a <= Y1 or Y2a >= Y2<br />
</translate><br />
[[File:XY_Title_v2.svg]]<br />
<br />
<translate><br />
<!--T:27--><br />
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:<br />
</translate><br />
<syntaxhighlight><br />
<!-- Working space X1 Y1 X2 Y2 --><br />
<!-- Title block X1a Y1a X2a Y2a --><br />
</syntaxhighlight><br />
<br />
<translate><br />
<!--T:34--><br />
In order to enable up to scale printing, the real word size has to be given in the width and height attributes of the SVG-Tag. The size of the document in user units, (px), has to be given in the viewBox attribute.<br />
<br />
<!--T:35--><br />
The following is to be formatted like the example below where:<br />
* xxx = pixel width<br />
* yyy = pixel height<br />
</translate><br />
<syntaxhighlight><br />
width="xxxmm"<br />
height="yyymm"<br />
viewBox="0 0 xxx yyy"<br />
</syntaxhighlight><br />
<translate><br />
<br />
<!--T:2--><br />
* Several custom attributes can be placed in templates. The list of currently supported attributes is available on the [[Svg Namespace]] page.<br />
<br />
== DXF templates == <!--T:37--><br />
<br />
<!--T:38--><br />
Since version 0.15, FreeCAD can reliably export a [[Drawing Module|Drawing]] page to the DXF format. This system also uses templates. If a dxf file with the same name is found in the same folder as the SVG template used for a page, it will be used for export. If not, a default empty template is created on the fly.<br />
<br />
<!--T:39--><br />
Consequently, if you create your own SVG templates, and wish to be able to export the Drawing pages that you create with it to DXF, you just need to create a corresponding DXF template, and save it with the same name in the same folder.<br />
<br />
<!--T:40--><br />
DXF templates can be created with any application that produces DXF files, such as LibreCAD. You then need to edit them with a text editor, and add two additional lines, one at the beginning or end of the BLOCKS section, and another at the beginning or end of the ENTITIES section, which are where FreeCAD will add its own blocks and entities.<br />
<br />
<!--T:41--><br />
A very simple template looks like this:<br />
<br />
<!--T:42--><br />
999<br />
FreeCAD DXF exporter v0.15<br />
0<br />
SECTION<br />
2<br />
HEADER<br />
9<br />
$ACADVER<br />
1<br />
AC1009<br />
0<br />
ENDSEC<br />
0<br />
SECTION<br />
2<br />
BLOCKS<br />
$blocks<br />
0<br />
ENDSEC<br />
0<br />
SECTION<br />
2<br />
ENTITIES<br />
$entities<br />
0<br />
ENDSEC<br />
0<br />
EOF<br />
<br />
<!--T:43--><br />
The above template doesn't contain any entity. If you create your DXF file with a CAD application, there will likely be much more content inside the HEADER, BLOCKS and ENTITIES sections.<br />
<br />
<!--T:44--><br />
The two lines that FreeCAD will be looking for are "$blocks" and "$entities". They must exist in the template, and they must be placed on their own line. You can choose to place them right after the BLOCKS or ENTITIES line, which is easier (just use the "search" function of your text editor to find them), or at the end, just before the "0 ENDSEC" lines (beware that there is one for each SECTION, make sure to use the ones relative to BLOCKS and ENTITIES). The latter method will place the FreeCAD objects after the objects defined in the template, which might be more logical.<br />
<br />
==A3 templates == <!--T:3--><br />
<br />
=== A3 Classic: === <!--T:4--><br />
[[Image:A3_Classic.svg|800px]]<br />
<br />
=== A3 Clean: === <!--T:5--><br />
[[Image:A3_Clean.svg|800px]]<br />
<br />
=== A3 Modern: === <!--T:6--><br />
[[Image:A3_Modern.svg|800px]]<br />
<br />
=== A3 Showcase: === <!--T:7--><br />
[[Image:A3_Showcase.svg|800px]]<br />
<br />
=== A3 Landscape english: === <!--T:8--><br />
[[File:A3_Landscape_english.svg|800px]]<br />
<br />
==A4 Templates == <!--T:9--><br />
<br />
=== A4 Landscape english: === <!--T:10--><br />
<br />
<!--T:11--><br />
[[File:A4_Landscape_english.svg|800px]]<br />
<br />
=== A4 Portrait 1 english:=== <!--T:12--><br />
<br />
<!--T:13--><br />
[[File:A4_Portrait_1_english.svg|400px]]<br />
<br />
==US Letter Templates == <!--T:14--><br />
<br />
=== US Letter landscape: === <!--T:15--><br />
<br />
<!--T:16--><br />
[[File:US_Letter_landscape.svg|800px]]<br />
<br />
<br />
=== US Letter portrait: === <!--T:17--><br />
<br />
<!--T:18--><br />
[[File:US_Letter_portrait.svg|400px]]<br />
<br />
=== US Letter ds Landscape: === <!--T:28--><br />
<br />
<!--T:29--><br />
[[File:US_Letter_ds_Landscape.svg|800px]]<br />
<br />
=== US Legal ds Landscape: === <!--T:30--><br />
<br />
<!--T:31--><br />
[[File:US_Legal_ds_Landscape.svg|800px]]<br />
<br />
=== US Ledger ds Landscape: === <!--T:32--><br />
<br />
<!--T:33--><br />
[[File:US_Ledger_ds_Landscape.svg|800px]]<br />
<br />
==Other standards available== <!--T:19--><br />
<br />
<!--T:20--><br />
* [[ANSI_templates|ANSI templates]]: according to American National Standards Institute [http://en.wikipedia.org/wiki/American_National_Standards_Institute ANSI] standard<br />
* [[Arch_templates|Arch templates]]: according to American National Standards Institute [http://en.wikipedia.org/wiki/American_National_Standards_Institute Arch] standard <br />
* [[Misc_templates|Misc templates]]: mixed templates<br />
<br />
<br />
<!--T:21--><br />
[[Category:Documentation]]<br />
<br />
</translate><br />
<languages/></div>Bravikovhttps://wiki.freecad.org/index.php?title=Drawing_templates/ru&diff=194634Drawing templates/ru2016-07-31T10:35:23Z<p>Bravikov: </p>
<hr />
<div><br />
== Создание SVG-шаблонов ==<br />
<br />
Создавать шаблоны для модуля чертежей (Drawing) легко и приятно. Смотрите также [[Drawing_Template_HowTo|руководство по созданию шаблонов чертежей]]. Шаблон — это файл в формате SVG, который можно создать в любой программе способной экспортировать SVG, например [http://www.inkscape.org Inkscape]. Необходимо соблюдать только два правила:<br />
* 1 пиксель = 1 миллиметру.<br />
* Где-нибудь в SVG-код, там где будет размещен чертеж, требуется вставить (например, в конец файла перед тегом </svg>) следующую строку:<br />
<syntaxhighlight><br />
<!-- DrawingContent --><br />
</syntaxhighlight><br />
Дополнительно, начиная с FreeCAD 0.14 (ревизия 2995), в SVG-коде можно указать положение рамки и основной надписи. Так FreeCAD будет знать где можно располагать проекции, а где нет.<br />
<br />
Чтобы задать положение рамки, необходимо вставить следующую строку перед тегом <metadata>:<br />
<syntaxhighlight><br />
<!-- Working space X1 Y1 X2 Y2 --><br />
</syntaxhighlight><br />
Где:<br />
* X1 — расстояние по оси X между левой границей листа и левой стороной рамки.<br />
* Y1 — расстояние по оси Y между верхней границей листа и верхней стороной рамки.<br />
* X2 — расстояние по оси X между левой границей листа и правой стороной рамки.<br />
* Y2 — расстояние по оси Y между верхней границей листа и нижней стороной рамки.<br />
[[File:XY_Working_v2.svg]]<br />
<br />
Чтобы задать положение основной надписи, необходимо вставить следующую строку перед тегом <metadata>:<br />
<syntaxhighlight><br />
<!-- Title block X1a Y1a X2a Y2a --><br />
</syntaxhighlight><br />
Где:<br />
* X1a — расстояние по оси X между левой границей листа и левой стороной основной надписи.<br />
* Y1a — расстояние по оси Y между верхней границей листа и верхней стороной основной надписи.<br />
* X2a — расстояние по оси X между левой границей листа и правой стороной основной надписи.<br />
* Y2a — расстояние по оси Y между верхней границей листа и нижней стороной основной надписи.<br />
* X1a <= X1 или X2a >= X2.<br />
* Y1a <= Y1 или Y2a >= Y2.<br />
[[File:XY_Title_v2.svg]]<br />
<br />
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:<br />
<syntaxhighlight><br />
<!-- Working space X1 Y1 X2 Y2 --><br />
<!-- Title block X1a Y1a X2a Y2a --><br />
</syntaxhighlight><br />
<br />
In order to enable up to scale printing, the real word size has to be given in the width and height attributes of the SVG-Tag. The size of the document in user units, (px), has to be given in the viewBox attribute.<br />
<br />
The following is to be formatted like the example below where:<br />
* xxx = pixel width<br />
* yyy = pixel height<br />
<syntaxhighlight><br />
width="xxxmm"<br />
height="yyymm"<br />
viewBox="0 0 xxx yyy"<br />
</syntaxhighlight><br />
<br />
* Several custom attributes can be placed in templates. The list of currently supported attributes is available on the [[Svg Namespace]] page.<br />
<br />
== DXF templates ==<br />
<br />
Since version 0.15, FreeCAD can reliably export a [[Drawing Module|Drawing]] page to the DXF format. This system also uses templates. If a dxf file with the same name is found in the same folder as the SVG template used for a page, it will be used for export. If not, a default empty template is created on the fly.<br />
<br />
Consequently, if you create your own SVG templates, and wish to be able to export the Drawing pages that you create with it to DXF, you just need to create a corresponding DXF template, and save it with the same name in the same folder.<br />
<br />
DXF templates can be created with any application that produces DXF files, such as LibreCAD. You then need to edit them with a text editor, and add two additional lines, one at the beginning or end of the BLOCKS section, and another at the beginning or end of the ENTITIES section, which are where FreeCAD will add its own blocks and entities.<br />
<br />
A very simple template looks like this:<br />
<br />
999<br />
FreeCAD DXF exporter v0.15<br />
0<br />
SECTION<br />
2<br />
HEADER<br />
9<br />
$ACADVER<br />
1<br />
AC1009<br />
0<br />
ENDSEC<br />
0<br />
SECTION<br />
2<br />
BLOCKS<br />
$blocks<br />
0<br />
ENDSEC<br />
0<br />
SECTION<br />
2<br />
ENTITIES<br />
$entities<br />
0<br />
ENDSEC<br />
0<br />
EOF<br />
<br />
The above template doesn't contain any entity. If you create your DXF file with a CAD application, there will likely be much more content inside the HEADER, BLOCKS and ENTITIES sections.<br />
<br />
The two lines that FreeCAD will be looking for are "$blocks" and "$entities". They must exist in the template, and they must be placed on their own line. You can choose to place them right after the BLOCKS or ENTITIES line, which is easier (just use the "search" function of your text editor to find them), or at the end, just before the "0 ENDSEC" lines (beware that there is one for each SECTION, make sure to use the ones relative to BLOCKS and ENTITIES). The latter method will place the FreeCAD objects after the objects defined in the template, which might be more logical.<br />
<br />
==A3 templates ==<br />
<br />
=== A3 Classic: ===<br />
[[Image:A3_Classic.svg|800px]]<br />
<br />
=== A3 Clean: ===<br />
[[Image:A3_Clean.svg|800px]]<br />
<br />
=== A3 Modern: ===<br />
[[Image:A3_Modern.svg|800px]]<br />
<br />
=== A3 Showcase: ===<br />
[[Image:A3_Showcase.svg|800px]]<br />
<br />
=== A3 Landscape english: ===<br />
[[File:A3_Landscape_english.svg|800px]]<br />
<br />
==A4 Templates ==<br />
<br />
=== A4 Landscape english: ===<br />
<br />
[[File:A4_Landscape_english.svg|800px]]<br />
<br />
=== A4 Portrait 1 english:===<br />
<br />
[[File:A4_Portrait_1_english.svg|400px]]<br />
<br />
==US Letter Templates ==<br />
<br />
=== US Letter landscape: ===<br />
<br />
[[File:US_Letter_landscape.svg|800px]]<br />
<br />
<br />
=== US Letter portrait: ===<br />
<br />
[[File:US_Letter_portrait.svg|400px]]<br />
<br />
=== US Letter ds Landscape: ===<br />
<br />
[[File:US_Letter_ds_Landscape.svg|800px]]<br />
<br />
=== US Legal ds Landscape: ===<br />
<br />
[[File:US_Legal_ds_Landscape.svg|800px]]<br />
<br />
=== US Ledger ds Landscape: ===<br />
<br />
[[File:US_Ledger_ds_Landscape.svg|800px]]<br />
<br />
==Other standards available==<br />
<br />
* [[ANSI_templates|ANSI templates]]: according to American National Standards Institute [http://en.wikipedia.org/wiki/American_National_Standards_Institute ANSI] standard<br />
* [[Arch_templates|Arch templates]]: according to American National Standards Institute [http://en.wikipedia.org/wiki/American_National_Standards_Institute Arch] standard <br />
* [[Misc_templates|Misc templates]]: mixed templates<br />
<br />
<br />
[[Category:Documentation]]<br />
<br />
<languages/></div>Bravikovhttps://wiki.freecad.org/index.php?title=Translations:Drawing_templates/26/ru&diff=194633Translations:Drawing templates/26/ru2016-07-31T10:35:22Z<p>Bravikov: </p>
<hr />
<div>Где:<br />
* X1a — расстояние по оси X между левой границей листа и левой стороной основной надписи.<br />
* Y1a — расстояние по оси Y между верхней границей листа и верхней стороной основной надписи.<br />
* X2a — расстояние по оси X между левой границей листа и правой стороной основной надписи.<br />
* Y2a — расстояние по оси Y между верхней границей листа и нижней стороной основной надписи.<br />
* X1a <= X1 или X2a >= X2.<br />
* Y1a <= Y1 или Y2a >= Y2.</div>Bravikovhttps://wiki.freecad.org/index.php?title=Drawing_templates/ru&diff=194632Drawing templates/ru2016-07-31T10:34:51Z<p>Bravikov: Created page with "Где: * X1a — расстояние по оси X между левой границей листа и левой стороной основной надписи. * Y1a..."</p>
<hr />
<div><br />
== Создание SVG-шаблонов ==<br />
<br />
Создавать шаблоны для модуля чертежей (Drawing) легко и приятно. Смотрите также [[Drawing_Template_HowTo|руководство по созданию шаблонов чертежей]]. Шаблон — это файл в формате SVG, который можно создать в любой программе способной экспортировать SVG, например [http://www.inkscape.org Inkscape]. Необходимо соблюдать только два правила:<br />
* 1 пиксель = 1 миллиметру.<br />
* Где-нибудь в SVG-код, там где будет размещен чертеж, требуется вставить (например, в конец файла перед тегом </svg>) следующую строку:<br />
<syntaxhighlight><br />
<!-- DrawingContent --><br />
</syntaxhighlight><br />
Дополнительно, начиная с FreeCAD 0.14 (ревизия 2995), в SVG-коде можно указать положение рамки и основной надписи. Так FreeCAD будет знать где можно располагать проекции, а где нет.<br />
<br />
Чтобы задать положение рамки, необходимо вставить следующую строку перед тегом <metadata>:<br />
<syntaxhighlight><br />
<!-- Working space X1 Y1 X2 Y2 --><br />
</syntaxhighlight><br />
Где:<br />
* X1 — расстояние по оси X между левой границей листа и левой стороной рамки.<br />
* Y1 — расстояние по оси Y между верхней границей листа и верхней стороной рамки.<br />
* X2 — расстояние по оси X между левой границей листа и правой стороной рамки.<br />
* Y2 — расстояние по оси Y между верхней границей листа и нижней стороной рамки.<br />
[[File:XY_Working_v2.svg]]<br />
<br />
Чтобы задать положение основной надписи, необходимо вставить следующую строку перед тегом <metadata>:<br />
<syntaxhighlight><br />
<!-- Title block X1a Y1a X2a Y2a --><br />
</syntaxhighlight><br />
Где:<br />
* X1a — расстояние по оси X между левой границей листа и левой стороной основной надписи.<br />
* Y1a — расстояние по оси Y между верхней границей листа и верхней стороной основной надписи.<br />
* X2a — расстояние по оси X между левой границей листа и правой стороной основной надписи.<br />
* Y2a — расстояние по оси Y между верхней границей листа и нижней стороной основной надписи.<br />
* X1a <= X1 или X2a >= X2<br />
* Y1a <= Y1 или Y2a >= Y2<br />
[[File:XY_Title_v2.svg]]<br />
<br />
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:<br />
<syntaxhighlight><br />
<!-- Working space X1 Y1 X2 Y2 --><br />
<!-- Title block X1a Y1a X2a Y2a --><br />
</syntaxhighlight><br />
<br />
In order to enable up to scale printing, the real word size has to be given in the width and height attributes of the SVG-Tag. The size of the document in user units, (px), has to be given in the viewBox attribute.<br />
<br />
The following is to be formatted like the example below where:<br />
* xxx = pixel width<br />
* yyy = pixel height<br />
<syntaxhighlight><br />
width="xxxmm"<br />
height="yyymm"<br />
viewBox="0 0 xxx yyy"<br />
</syntaxhighlight><br />
<br />
* Several custom attributes can be placed in templates. The list of currently supported attributes is available on the [[Svg Namespace]] page.<br />
<br />
== DXF templates ==<br />
<br />
Since version 0.15, FreeCAD can reliably export a [[Drawing Module|Drawing]] page to the DXF format. This system also uses templates. If a dxf file with the same name is found in the same folder as the SVG template used for a page, it will be used for export. If not, a default empty template is created on the fly.<br />
<br />
Consequently, if you create your own SVG templates, and wish to be able to export the Drawing pages that you create with it to DXF, you just need to create a corresponding DXF template, and save it with the same name in the same folder.<br />
<br />
DXF templates can be created with any application that produces DXF files, such as LibreCAD. You then need to edit them with a text editor, and add two additional lines, one at the beginning or end of the BLOCKS section, and another at the beginning or end of the ENTITIES section, which are where FreeCAD will add its own blocks and entities.<br />
<br />
A very simple template looks like this:<br />
<br />
999<br />
FreeCAD DXF exporter v0.15<br />
0<br />
SECTION<br />
2<br />
HEADER<br />
9<br />
$ACADVER<br />
1<br />
AC1009<br />
0<br />
ENDSEC<br />
0<br />
SECTION<br />
2<br />
BLOCKS<br />
$blocks<br />
0<br />
ENDSEC<br />
0<br />
SECTION<br />
2<br />
ENTITIES<br />
$entities<br />
0<br />
ENDSEC<br />
0<br />
EOF<br />
<br />
The above template doesn't contain any entity. If you create your DXF file with a CAD application, there will likely be much more content inside the HEADER, BLOCKS and ENTITIES sections.<br />
<br />
The two lines that FreeCAD will be looking for are "$blocks" and "$entities". They must exist in the template, and they must be placed on their own line. You can choose to place them right after the BLOCKS or ENTITIES line, which is easier (just use the "search" function of your text editor to find them), or at the end, just before the "0 ENDSEC" lines (beware that there is one for each SECTION, make sure to use the ones relative to BLOCKS and ENTITIES). The latter method will place the FreeCAD objects after the objects defined in the template, which might be more logical.<br />
<br />
==A3 templates ==<br />
<br />
=== A3 Classic: ===<br />
[[Image:A3_Classic.svg|800px]]<br />
<br />
=== A3 Clean: ===<br />
[[Image:A3_Clean.svg|800px]]<br />
<br />
=== A3 Modern: ===<br />
[[Image:A3_Modern.svg|800px]]<br />
<br />
=== A3 Showcase: ===<br />
[[Image:A3_Showcase.svg|800px]]<br />
<br />
=== A3 Landscape english: ===<br />
[[File:A3_Landscape_english.svg|800px]]<br />
<br />
==A4 Templates ==<br />
<br />
=== A4 Landscape english: ===<br />
<br />
[[File:A4_Landscape_english.svg|800px]]<br />
<br />
=== A4 Portrait 1 english:===<br />
<br />
[[File:A4_Portrait_1_english.svg|400px]]<br />
<br />
==US Letter Templates ==<br />
<br />
=== US Letter landscape: ===<br />
<br />
[[File:US_Letter_landscape.svg|800px]]<br />
<br />
<br />
=== US Letter portrait: ===<br />
<br />
[[File:US_Letter_portrait.svg|400px]]<br />
<br />
=== US Letter ds Landscape: ===<br />
<br />
[[File:US_Letter_ds_Landscape.svg|800px]]<br />
<br />
=== US Legal ds Landscape: ===<br />
<br />
[[File:US_Legal_ds_Landscape.svg|800px]]<br />
<br />
=== US Ledger ds Landscape: ===<br />
<br />
[[File:US_Ledger_ds_Landscape.svg|800px]]<br />
<br />
==Other standards available==<br />
<br />
* [[ANSI_templates|ANSI templates]]: according to American National Standards Institute [http://en.wikipedia.org/wiki/American_National_Standards_Institute ANSI] standard<br />
* [[Arch_templates|Arch templates]]: according to American National Standards Institute [http://en.wikipedia.org/wiki/American_National_Standards_Institute Arch] standard <br />
* [[Misc_templates|Misc templates]]: mixed templates<br />
<br />
<br />
[[Category:Documentation]]<br />
<br />
<languages/></div>Bravikovhttps://wiki.freecad.org/index.php?title=Translations:Drawing_templates/26/ru&diff=194631Translations:Drawing templates/26/ru2016-07-31T10:34:50Z<p>Bravikov: Created page with "Где: * X1a — расстояние по оси X между левой границей листа и левой стороной основной надписи. * Y1a..."</p>
<hr />
<div>Где:<br />
* X1a — расстояние по оси X между левой границей листа и левой стороной основной надписи.<br />
* Y1a — расстояние по оси Y между верхней границей листа и верхней стороной основной надписи.<br />
* X2a — расстояние по оси X между левой границей листа и правой стороной основной надписи.<br />
* Y2a — расстояние по оси Y между верхней границей листа и нижней стороной основной надписи.<br />
* X1a <= X1 или X2a >= X2<br />
* Y1a <= Y1 или Y2a >= Y2</div>Bravikovhttps://wiki.freecad.org/index.php?title=Drawing_templates/ru&diff=194630Drawing templates/ru2016-07-31T10:11:27Z<p>Bravikov: Created page with "Чтобы задать положение основной надписи, необходимо вставить следующую строку перед тегом <metada..."</p>
<hr />
<div><br />
== Создание SVG-шаблонов ==<br />
<br />
Создавать шаблоны для модуля чертежей (Drawing) легко и приятно. Смотрите также [[Drawing_Template_HowTo|руководство по созданию шаблонов чертежей]]. Шаблон — это файл в формате SVG, который можно создать в любой программе способной экспортировать SVG, например [http://www.inkscape.org Inkscape]. Необходимо соблюдать только два правила:<br />
* 1 пиксель = 1 миллиметру.<br />
* Где-нибудь в SVG-код, там где будет размещен чертеж, требуется вставить (например, в конец файла перед тегом </svg>) следующую строку:<br />
<syntaxhighlight><br />
<!-- DrawingContent --><br />
</syntaxhighlight><br />
Дополнительно, начиная с FreeCAD 0.14 (ревизия 2995), в SVG-коде можно указать положение рамки и основной надписи. Так FreeCAD будет знать где можно располагать проекции, а где нет.<br />
<br />
Чтобы задать положение рамки, необходимо вставить следующую строку перед тегом <metadata>:<br />
<syntaxhighlight><br />
<!-- Working space X1 Y1 X2 Y2 --><br />
</syntaxhighlight><br />
Где:<br />
* X1 — расстояние по оси X между левой границей листа и левой стороной рамки.<br />
* Y1 — расстояние по оси Y между верхней границей листа и верхней стороной рамки.<br />
* X2 — расстояние по оси X между левой границей листа и правой стороной рамки.<br />
* Y2 — расстояние по оси Y между верхней границей листа и нижней стороной рамки.<br />
[[File:XY_Working_v2.svg]]<br />
<br />
Чтобы задать положение основной надписи, необходимо вставить следующую строку перед тегом <metadata>:<br />
<syntaxhighlight><br />
<!-- Title block X1a Y1a X2a Y2a --><br />
</syntaxhighlight><br />
Where X1a, Y1a, X2a, Y2a are defined as:<br />
* X1a is the X axis distance from the left edge of the page to the left side of the Title block<br />
* Y1a is the Y axis distance from the top edge of the page the the top of the Title block<br />
* X2a is the X Axis distance from the left edge of the page to the right side of the Title block<br />
* Y2a is the Y axis distance from the top edge of the page the the bottom of the Title block<br />
* X1a <= X1 or X2a >= X2<br />
* Y1a <= Y1 or Y2a >= Y2<br />
[[File:XY_Title_v2.svg]]<br />
<br />
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:<br />
<syntaxhighlight><br />
<!-- Working space X1 Y1 X2 Y2 --><br />
<!-- Title block X1a Y1a X2a Y2a --><br />
</syntaxhighlight><br />
<br />
In order to enable up to scale printing, the real word size has to be given in the width and height attributes of the SVG-Tag. The size of the document in user units, (px), has to be given in the viewBox attribute.<br />
<br />
The following is to be formatted like the example below where:<br />
* xxx = pixel width<br />
* yyy = pixel height<br />
<syntaxhighlight><br />
width="xxxmm"<br />
height="yyymm"<br />
viewBox="0 0 xxx yyy"<br />
</syntaxhighlight><br />
<br />
* Several custom attributes can be placed in templates. The list of currently supported attributes is available on the [[Svg Namespace]] page.<br />
<br />
== DXF templates ==<br />
<br />
Since version 0.15, FreeCAD can reliably export a [[Drawing Module|Drawing]] page to the DXF format. This system also uses templates. If a dxf file with the same name is found in the same folder as the SVG template used for a page, it will be used for export. If not, a default empty template is created on the fly.<br />
<br />
Consequently, if you create your own SVG templates, and wish to be able to export the Drawing pages that you create with it to DXF, you just need to create a corresponding DXF template, and save it with the same name in the same folder.<br />
<br />
DXF templates can be created with any application that produces DXF files, such as LibreCAD. You then need to edit them with a text editor, and add two additional lines, one at the beginning or end of the BLOCKS section, and another at the beginning or end of the ENTITIES section, which are where FreeCAD will add its own blocks and entities.<br />
<br />
A very simple template looks like this:<br />
<br />
999<br />
FreeCAD DXF exporter v0.15<br />
0<br />
SECTION<br />
2<br />
HEADER<br />
9<br />
$ACADVER<br />
1<br />
AC1009<br />
0<br />
ENDSEC<br />
0<br />
SECTION<br />
2<br />
BLOCKS<br />
$blocks<br />
0<br />
ENDSEC<br />
0<br />
SECTION<br />
2<br />
ENTITIES<br />
$entities<br />
0<br />
ENDSEC<br />
0<br />
EOF<br />
<br />
The above template doesn't contain any entity. If you create your DXF file with a CAD application, there will likely be much more content inside the HEADER, BLOCKS and ENTITIES sections.<br />
<br />
The two lines that FreeCAD will be looking for are "$blocks" and "$entities". They must exist in the template, and they must be placed on their own line. You can choose to place them right after the BLOCKS or ENTITIES line, which is easier (just use the "search" function of your text editor to find them), or at the end, just before the "0 ENDSEC" lines (beware that there is one for each SECTION, make sure to use the ones relative to BLOCKS and ENTITIES). The latter method will place the FreeCAD objects after the objects defined in the template, which might be more logical.<br />
<br />
==A3 templates ==<br />
<br />
=== A3 Classic: ===<br />
[[Image:A3_Classic.svg|800px]]<br />
<br />
=== A3 Clean: ===<br />
[[Image:A3_Clean.svg|800px]]<br />
<br />
=== A3 Modern: ===<br />
[[Image:A3_Modern.svg|800px]]<br />
<br />
=== A3 Showcase: ===<br />
[[Image:A3_Showcase.svg|800px]]<br />
<br />
=== A3 Landscape english: ===<br />
[[File:A3_Landscape_english.svg|800px]]<br />
<br />
==A4 Templates ==<br />
<br />
=== A4 Landscape english: ===<br />
<br />
[[File:A4_Landscape_english.svg|800px]]<br />
<br />
=== A4 Portrait 1 english:===<br />
<br />
[[File:A4_Portrait_1_english.svg|400px]]<br />
<br />
==US Letter Templates ==<br />
<br />
=== US Letter landscape: ===<br />
<br />
[[File:US_Letter_landscape.svg|800px]]<br />
<br />
<br />
=== US Letter portrait: ===<br />
<br />
[[File:US_Letter_portrait.svg|400px]]<br />
<br />
=== US Letter ds Landscape: ===<br />
<br />
[[File:US_Letter_ds_Landscape.svg|800px]]<br />
<br />
=== US Legal ds Landscape: ===<br />
<br />
[[File:US_Legal_ds_Landscape.svg|800px]]<br />
<br />
=== US Ledger ds Landscape: ===<br />
<br />
[[File:US_Ledger_ds_Landscape.svg|800px]]<br />
<br />
==Other standards available==<br />
<br />
* [[ANSI_templates|ANSI templates]]: according to American National Standards Institute [http://en.wikipedia.org/wiki/American_National_Standards_Institute ANSI] standard<br />
* [[Arch_templates|Arch templates]]: according to American National Standards Institute [http://en.wikipedia.org/wiki/American_National_Standards_Institute Arch] standard <br />
* [[Misc_templates|Misc templates]]: mixed templates<br />
<br />
<br />
[[Category:Documentation]]<br />
<br />
<languages/></div>Bravikovhttps://wiki.freecad.org/index.php?title=Translations:Drawing_templates/25/ru&diff=194629Translations:Drawing templates/25/ru2016-07-31T10:11:26Z<p>Bravikov: Created page with "Чтобы задать положение основной надписи, необходимо вставить следующую строку перед тегом <metada..."</p>
<hr />
<div>Чтобы задать положение основной надписи, необходимо вставить следующую строку перед тегом <metadata>:</div>Bravikovhttps://wiki.freecad.org/index.php?title=Drawing_templates&diff=194628Drawing templates2016-07-31T10:10:28Z<p>Bravikov: Fixed "<metadata tag" and "the the".</p>
<hr />
<div><translate><br />
<br />
== SVG templates creation == <!--T:36--><br />
<br />
<!--T:1--><br />
Creating templates for the Drawing module is very easy. See also the tutorial [[Drawing_Template_HowTo]]. Templates 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:<br />
* One pixel = one millimeter<br />
* 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:<br />
</translate><br />
<syntaxhighlight><br />
<!-- DrawingContent --><br />
</syntaxhighlight><br />
<translate><br />
<!--T:22--><br />
In addition to these two rules, as of FreeCAD 0.14, Revision 2995, 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.<br />
<br />
<!--T:23--><br />
To define the Border, the following line must appear before the <metadata> tag in the svg file.<br />
</translate><br />
<syntaxhighlight><br />
<!-- Working space X1 Y1 X2 Y2 --><br />
</syntaxhighlight><br />
<translate><br />
<!--T:24--><br />
Where X1, Y1, X2, Y2 are defined as:<br />
* X1 is the X axis distance from the left edge of the page to the left side of the Border.<br />
* Y1 is the Y axis distance from the top edge of the page to the top of the Border.<br />
* X2 is the X axis distance from the left edge of the page to the right side of the Border.<br />
* Y2 is the Y axis distance from the top edge of the page to the bottom of the Border.<br />
</translate><br />
[[File:XY_Working_v2.svg]]<br />
<br />
<translate><br />
<!--T:25--><br />
To define the Title block the following line must be inserted before the <metadata> tag and after the Working space tag.<br />
</translate><br />
<syntaxhighlight><br />
<!-- Title block X1a Y1a X2a Y2a --><br />
</syntaxhighlight><br />
<translate><br />
<!--T:26--><br />
Where X1a, Y1a, X2a, Y2a are defined as:<br />
* X1a is the X axis distance from the left edge of the page to the left side of the Title block<br />
* Y1a is the Y axis distance from the top edge of the page to the top of the Title block<br />
* X2a is the X Axis distance from the left edge of the page to the right side of the Title block<br />
* Y2a is the Y axis distance from the top edge of the page to the bottom of the Title block<br />
* X1a <= X1 or X2a >= X2<br />
* Y1a <= Y1 or Y2a >= Y2<br />
</translate><br />
[[File:XY_Title_v2.svg]]<br />
<br />
<translate><br />
<!--T:27--><br />
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:<br />
</translate><br />
<syntaxhighlight><br />
<!-- Working space X1 Y1 X2 Y2 --><br />
<!-- Title block X1a Y1a X2a Y2a --><br />
</syntaxhighlight><br />
<br />
<translate><br />
<!--T:34--><br />
In order to enable up to scale printing, the real word size has to be given in the width and height attributes of the SVG-Tag. The size of the document in user units, (px), has to be given in the viewBox attribute.<br />
<br />
<!--T:35--><br />
The following is to be formatted like the example below where:<br />
* xxx = pixel width<br />
* yyy = pixel height<br />
</translate><br />
<syntaxhighlight><br />
width="xxxmm"<br />
height="yyymm"<br />
viewBox="0 0 xxx yyy"<br />
</syntaxhighlight><br />
<translate><br />
<br />
<!--T:2--><br />
* Several custom attributes can be placed in templates. The list of currently supported attributes is available on the [[Svg Namespace]] page.<br />
<br />
== DXF templates == <!--T:37--><br />
<br />
<!--T:38--><br />
Since version 0.15, FreeCAD can reliably export a [[Drawing Module|Drawing]] page to the DXF format. This system also uses templates. If a dxf file with the same name is found in the same folder as the SVG template used for a page, it will be used for export. If not, a default empty template is created on the fly.<br />
<br />
<!--T:39--><br />
Consequently, if you create your own SVG templates, and wish to be able to export the Drawing pages that you create with it to DXF, you just need to create a corresponding DXF template, and save it with the same name in the same folder.<br />
<br />
<!--T:40--><br />
DXF templates can be created with any application that produces DXF files, such as LibreCAD. You then need to edit them with a text editor, and add two additional lines, one at the beginning or end of the BLOCKS section, and another at the beginning or end of the ENTITIES section, which are where FreeCAD will add its own blocks and entities.<br />
<br />
<!--T:41--><br />
A very simple template looks like this:<br />
<br />
<!--T:42--><br />
999<br />
FreeCAD DXF exporter v0.15<br />
0<br />
SECTION<br />
2<br />
HEADER<br />
9<br />
$ACADVER<br />
1<br />
AC1009<br />
0<br />
ENDSEC<br />
0<br />
SECTION<br />
2<br />
BLOCKS<br />
$blocks<br />
0<br />
ENDSEC<br />
0<br />
SECTION<br />
2<br />
ENTITIES<br />
$entities<br />
0<br />
ENDSEC<br />
0<br />
EOF<br />
<br />
<!--T:43--><br />
The above template doesn't contain any entity. If you create your DXF file with a CAD application, there will likely be much more content inside the HEADER, BLOCKS and ENTITIES sections.<br />
<br />
<!--T:44--><br />
The two lines that FreeCAD will be looking for are "$blocks" and "$entities". They must exist in the template, and they must be placed on their own line. You can choose to place them right after the BLOCKS or ENTITIES line, which is easier (just use the "search" function of your text editor to find them), or at the end, just before the "0 ENDSEC" lines (beware that there is one for each SECTION, make sure to use the ones relative to BLOCKS and ENTITIES). The latter method will place the FreeCAD objects after the objects defined in the template, which might be more logical.<br />
<br />
==A3 templates == <!--T:3--><br />
<br />
=== A3 Classic: === <!--T:4--><br />
[[Image:A3_Classic.svg|800px]]<br />
<br />
=== A3 Clean: === <!--T:5--><br />
[[Image:A3_Clean.svg|800px]]<br />
<br />
=== A3 Modern: === <!--T:6--><br />
[[Image:A3_Modern.svg|800px]]<br />
<br />
=== A3 Showcase: === <!--T:7--><br />
[[Image:A3_Showcase.svg|800px]]<br />
<br />
=== A3 Landscape english: === <!--T:8--><br />
[[File:A3_Landscape_english.svg|800px]]<br />
<br />
==A4 Templates == <!--T:9--><br />
<br />
=== A4 Landscape english: === <!--T:10--><br />
<br />
<!--T:11--><br />
[[File:A4_Landscape_english.svg|800px]]<br />
<br />
=== A4 Portrait 1 english:=== <!--T:12--><br />
<br />
<!--T:13--><br />
[[File:A4_Portrait_1_english.svg|400px]]<br />
<br />
==US Letter Templates == <!--T:14--><br />
<br />
=== US Letter landscape: === <!--T:15--><br />
<br />
<!--T:16--><br />
[[File:US_Letter_landscape.svg|800px]]<br />
<br />
<br />
=== US Letter portrait: === <!--T:17--><br />
<br />
<!--T:18--><br />
[[File:US_Letter_portrait.svg|400px]]<br />
<br />
=== US Letter ds Landscape: === <!--T:28--><br />
<br />
<!--T:29--><br />
[[File:US_Letter_ds_Landscape.svg|800px]]<br />
<br />
=== US Legal ds Landscape: === <!--T:30--><br />
<br />
<!--T:31--><br />
[[File:US_Legal_ds_Landscape.svg|800px]]<br />
<br />
=== US Ledger ds Landscape: === <!--T:32--><br />
<br />
<!--T:33--><br />
[[File:US_Ledger_ds_Landscape.svg|800px]]<br />
<br />
==Other standards available== <!--T:19--><br />
<br />
<!--T:20--><br />
* [[ANSI_templates|ANSI templates]]: according to American National Standards Institute [http://en.wikipedia.org/wiki/American_National_Standards_Institute ANSI] standard<br />
* [[Arch_templates|Arch templates]]: according to American National Standards Institute [http://en.wikipedia.org/wiki/American_National_Standards_Institute Arch] standard <br />
* [[Misc_templates|Misc templates]]: mixed templates<br />
<br />
<br />
<!--T:21--><br />
[[Category:Documentation]]<br />
<br />
</translate><br />
<languages/></div>Bravikovhttps://wiki.freecad.org/index.php?title=Drawing_templates/ru&diff=194627Drawing templates/ru2016-07-31T10:08:05Z<p>Bravikov: </p>
<hr />
<div><br />
== Создание SVG-шаблонов ==<br />
<br />
Создавать шаблоны для модуля чертежей (Drawing) легко и приятно. Смотрите также [[Drawing_Template_HowTo|руководство по созданию шаблонов чертежей]]. Шаблон — это файл в формате SVG, который можно создать в любой программе способной экспортировать SVG, например [http://www.inkscape.org Inkscape]. Необходимо соблюдать только два правила:<br />
* 1 пиксель = 1 миллиметру.<br />
* Где-нибудь в SVG-код, там где будет размещен чертеж, требуется вставить (например, в конец файла перед тегом </svg>) следующую строку:<br />
<syntaxhighlight><br />
<!-- DrawingContent --><br />
</syntaxhighlight><br />
Дополнительно, начиная с FreeCAD 0.14 (ревизия 2995), в SVG-коде можно указать положение рамки и основной надписи. Так FreeCAD будет знать где можно располагать проекции, а где нет.<br />
<br />
Чтобы задать положение рамки, необходимо вставить следующую строку перед тегом <metadata>:<br />
<syntaxhighlight><br />
<!-- Working space X1 Y1 X2 Y2 --><br />
</syntaxhighlight><br />
Где:<br />
* X1 — расстояние по оси X между левой границей листа и левой стороной рамки.<br />
* Y1 — расстояние по оси Y между верхней границей листа и верхней стороной рамки.<br />
* X2 — расстояние по оси X между левой границей листа и правой стороной рамки.<br />
* Y2 — расстояние по оси Y между верхней границей листа и нижней стороной рамки.<br />
[[File:XY_Working_v2.svg]]<br />
<br />
To define the Title block the following line must be inserted before the <metadata tag and after the Working space tag.<br />
<syntaxhighlight><br />
<!-- Title block X1a Y1a X2a Y2a --><br />
</syntaxhighlight><br />
Where X1a, Y1a, X2a, Y2a are defined as:<br />
* X1a is the X axis distance from the left edge of the page to the left side of the Title block<br />
* Y1a is the Y axis distance from the top edge of the page the the top of the Title block<br />
* X2a is the X Axis distance from the left edge of the page to the right side of the Title block<br />
* Y2a is the Y axis distance from the top edge of the page the the bottom of the Title block<br />
* X1a <= X1 or X2a >= X2<br />
* Y1a <= Y1 or Y2a >= Y2<br />
[[File:XY_Title_v2.svg]]<br />
<br />
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:<br />
<syntaxhighlight><br />
<!-- Working space X1 Y1 X2 Y2 --><br />
<!-- Title block X1a Y1a X2a Y2a --><br />
</syntaxhighlight><br />
<br />
In order to enable up to scale printing, the real word size has to be given in the width and height attributes of the SVG-Tag. The size of the document in user units, (px), has to be given in the viewBox attribute.<br />
<br />
The following is to be formatted like the example below where:<br />
* xxx = pixel width<br />
* yyy = pixel height<br />
<syntaxhighlight><br />
width="xxxmm"<br />
height="yyymm"<br />
viewBox="0 0 xxx yyy"<br />
</syntaxhighlight><br />
<br />
* Several custom attributes can be placed in templates. The list of currently supported attributes is available on the [[Svg Namespace]] page.<br />
<br />
== DXF templates ==<br />
<br />
Since version 0.15, FreeCAD can reliably export a [[Drawing Module|Drawing]] page to the DXF format. This system also uses templates. If a dxf file with the same name is found in the same folder as the SVG template used for a page, it will be used for export. If not, a default empty template is created on the fly.<br />
<br />
Consequently, if you create your own SVG templates, and wish to be able to export the Drawing pages that you create with it to DXF, you just need to create a corresponding DXF template, and save it with the same name in the same folder.<br />
<br />
DXF templates can be created with any application that produces DXF files, such as LibreCAD. You then need to edit them with a text editor, and add two additional lines, one at the beginning or end of the BLOCKS section, and another at the beginning or end of the ENTITIES section, which are where FreeCAD will add its own blocks and entities.<br />
<br />
A very simple template looks like this:<br />
<br />
999<br />
FreeCAD DXF exporter v0.15<br />
0<br />
SECTION<br />
2<br />
HEADER<br />
9<br />
$ACADVER<br />
1<br />
AC1009<br />
0<br />
ENDSEC<br />
0<br />
SECTION<br />
2<br />
BLOCKS<br />
$blocks<br />
0<br />
ENDSEC<br />
0<br />
SECTION<br />
2<br />
ENTITIES<br />
$entities<br />
0<br />
ENDSEC<br />
0<br />
EOF<br />
<br />
The above template doesn't contain any entity. If you create your DXF file with a CAD application, there will likely be much more content inside the HEADER, BLOCKS and ENTITIES sections.<br />
<br />
The two lines that FreeCAD will be looking for are "$blocks" and "$entities". They must exist in the template, and they must be placed on their own line. You can choose to place them right after the BLOCKS or ENTITIES line, which is easier (just use the "search" function of your text editor to find them), or at the end, just before the "0 ENDSEC" lines (beware that there is one for each SECTION, make sure to use the ones relative to BLOCKS and ENTITIES). The latter method will place the FreeCAD objects after the objects defined in the template, which might be more logical.<br />
<br />
==A3 templates ==<br />
<br />
=== A3 Classic: ===<br />
[[Image:A3_Classic.svg|800px]]<br />
<br />
=== A3 Clean: ===<br />
[[Image:A3_Clean.svg|800px]]<br />
<br />
=== A3 Modern: ===<br />
[[Image:A3_Modern.svg|800px]]<br />
<br />
=== A3 Showcase: ===<br />
[[Image:A3_Showcase.svg|800px]]<br />
<br />
=== A3 Landscape english: ===<br />
[[File:A3_Landscape_english.svg|800px]]<br />
<br />
==A4 Templates ==<br />
<br />
=== A4 Landscape english: ===<br />
<br />
[[File:A4_Landscape_english.svg|800px]]<br />
<br />
=== A4 Portrait 1 english:===<br />
<br />
[[File:A4_Portrait_1_english.svg|400px]]<br />
<br />
==US Letter Templates ==<br />
<br />
=== US Letter landscape: ===<br />
<br />
[[File:US_Letter_landscape.svg|800px]]<br />
<br />
<br />
=== US Letter portrait: ===<br />
<br />
[[File:US_Letter_portrait.svg|400px]]<br />
<br />
=== US Letter ds Landscape: ===<br />
<br />
[[File:US_Letter_ds_Landscape.svg|800px]]<br />
<br />
=== US Legal ds Landscape: ===<br />
<br />
[[File:US_Legal_ds_Landscape.svg|800px]]<br />
<br />
=== US Ledger ds Landscape: ===<br />
<br />
[[File:US_Ledger_ds_Landscape.svg|800px]]<br />
<br />
==Other standards available==<br />
<br />
* [[ANSI_templates|ANSI templates]]: according to American National Standards Institute [http://en.wikipedia.org/wiki/American_National_Standards_Institute ANSI] standard<br />
* [[Arch_templates|Arch templates]]: according to American National Standards Institute [http://en.wikipedia.org/wiki/American_National_Standards_Institute Arch] standard <br />
* [[Misc_templates|Misc templates]]: mixed templates<br />
<br />
<br />
[[Category:Documentation]]<br />
<br />
<languages/></div>Bravikovhttps://wiki.freecad.org/index.php?title=Translations:Drawing_templates/23/ru&diff=194626Translations:Drawing templates/23/ru2016-07-31T10:08:05Z<p>Bravikov: </p>
<hr />
<div>Чтобы задать положение рамки, необходимо вставить следующую строку перед тегом <metadata>:</div>Bravikovhttps://wiki.freecad.org/index.php?title=Drawing_templates/ru&diff=194625Drawing templates/ru2016-07-31T10:07:31Z<p>Bravikov: </p>
<hr />
<div><br />
== Создание SVG-шаблонов ==<br />
<br />
Создавать шаблоны для модуля чертежей (Drawing) легко и приятно. Смотрите также [[Drawing_Template_HowTo|руководство по созданию шаблонов чертежей]]. Шаблон — это файл в формате SVG, который можно создать в любой программе способной экспортировать SVG, например [http://www.inkscape.org Inkscape]. Необходимо соблюдать только два правила:<br />
* 1 пиксель = 1 миллиметру.<br />
* Где-нибудь в SVG-код, там где будет размещен чертеж, требуется вставить (например, в конец файла перед тегом </svg>) следующую строку:<br />
<syntaxhighlight><br />
<!-- DrawingContent --><br />
</syntaxhighlight><br />
Дополнительно, начиная с FreeCAD 0.14 (ревизия 2995), в SVG-коде можно указать положение рамки и основной надписи. Так FreeCAD будет знать где можно располагать проекции, а где нет.<br />
<br />
Чтобы задать рамку, следующую строку необходимом вставить перед тегом <metadata>:<br />
<syntaxhighlight><br />
<!-- Working space X1 Y1 X2 Y2 --><br />
</syntaxhighlight><br />
Где:<br />
* X1 — расстояние по оси X между левой границей листа и левой стороной рамки.<br />
* Y1 — расстояние по оси Y между верхней границей листа и верхней стороной рамки.<br />
* X2 — расстояние по оси X между левой границей листа и правой стороной рамки.<br />
* Y2 — расстояние по оси Y между верхней границей листа и нижней стороной рамки.<br />
[[File:XY_Working_v2.svg]]<br />
<br />
To define the Title block the following line must be inserted before the <metadata tag and after the Working space tag.<br />
<syntaxhighlight><br />
<!-- Title block X1a Y1a X2a Y2a --><br />
</syntaxhighlight><br />
Where X1a, Y1a, X2a, Y2a are defined as:<br />
* X1a is the X axis distance from the left edge of the page to the left side of the Title block<br />
* Y1a is the Y axis distance from the top edge of the page the the top of the Title block<br />
* X2a is the X Axis distance from the left edge of the page to the right side of the Title block<br />
* Y2a is the Y axis distance from the top edge of the page the the bottom of the Title block<br />
* X1a <= X1 or X2a >= X2<br />
* Y1a <= Y1 or Y2a >= Y2<br />
[[File:XY_Title_v2.svg]]<br />
<br />
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:<br />
<syntaxhighlight><br />
<!-- Working space X1 Y1 X2 Y2 --><br />
<!-- Title block X1a Y1a X2a Y2a --><br />
</syntaxhighlight><br />
<br />
In order to enable up to scale printing, the real word size has to be given in the width and height attributes of the SVG-Tag. The size of the document in user units, (px), has to be given in the viewBox attribute.<br />
<br />
The following is to be formatted like the example below where:<br />
* xxx = pixel width<br />
* yyy = pixel height<br />
<syntaxhighlight><br />
width="xxxmm"<br />
height="yyymm"<br />
viewBox="0 0 xxx yyy"<br />
</syntaxhighlight><br />
<br />
* Several custom attributes can be placed in templates. The list of currently supported attributes is available on the [[Svg Namespace]] page.<br />
<br />
== DXF templates ==<br />
<br />
Since version 0.15, FreeCAD can reliably export a [[Drawing Module|Drawing]] page to the DXF format. This system also uses templates. If a dxf file with the same name is found in the same folder as the SVG template used for a page, it will be used for export. If not, a default empty template is created on the fly.<br />
<br />
Consequently, if you create your own SVG templates, and wish to be able to export the Drawing pages that you create with it to DXF, you just need to create a corresponding DXF template, and save it with the same name in the same folder.<br />
<br />
DXF templates can be created with any application that produces DXF files, such as LibreCAD. You then need to edit them with a text editor, and add two additional lines, one at the beginning or end of the BLOCKS section, and another at the beginning or end of the ENTITIES section, which are where FreeCAD will add its own blocks and entities.<br />
<br />
A very simple template looks like this:<br />
<br />
999<br />
FreeCAD DXF exporter v0.15<br />
0<br />
SECTION<br />
2<br />
HEADER<br />
9<br />
$ACADVER<br />
1<br />
AC1009<br />
0<br />
ENDSEC<br />
0<br />
SECTION<br />
2<br />
BLOCKS<br />
$blocks<br />
0<br />
ENDSEC<br />
0<br />
SECTION<br />
2<br />
ENTITIES<br />
$entities<br />
0<br />
ENDSEC<br />
0<br />
EOF<br />
<br />
The above template doesn't contain any entity. If you create your DXF file with a CAD application, there will likely be much more content inside the HEADER, BLOCKS and ENTITIES sections.<br />
<br />
The two lines that FreeCAD will be looking for are "$blocks" and "$entities". They must exist in the template, and they must be placed on their own line. You can choose to place them right after the BLOCKS or ENTITIES line, which is easier (just use the "search" function of your text editor to find them), or at the end, just before the "0 ENDSEC" lines (beware that there is one for each SECTION, make sure to use the ones relative to BLOCKS and ENTITIES). The latter method will place the FreeCAD objects after the objects defined in the template, which might be more logical.<br />
<br />
==A3 templates ==<br />
<br />
=== A3 Classic: ===<br />
[[Image:A3_Classic.svg|800px]]<br />
<br />
=== A3 Clean: ===<br />
[[Image:A3_Clean.svg|800px]]<br />
<br />
=== A3 Modern: ===<br />
[[Image:A3_Modern.svg|800px]]<br />
<br />
=== A3 Showcase: ===<br />
[[Image:A3_Showcase.svg|800px]]<br />
<br />
=== A3 Landscape english: ===<br />
[[File:A3_Landscape_english.svg|800px]]<br />
<br />
==A4 Templates ==<br />
<br />
=== A4 Landscape english: ===<br />
<br />
[[File:A4_Landscape_english.svg|800px]]<br />
<br />
=== A4 Portrait 1 english:===<br />
<br />
[[File:A4_Portrait_1_english.svg|400px]]<br />
<br />
==US Letter Templates ==<br />
<br />
=== US Letter landscape: ===<br />
<br />
[[File:US_Letter_landscape.svg|800px]]<br />
<br />
<br />
=== US Letter portrait: ===<br />
<br />
[[File:US_Letter_portrait.svg|400px]]<br />
<br />
=== US Letter ds Landscape: ===<br />
<br />
[[File:US_Letter_ds_Landscape.svg|800px]]<br />
<br />
=== US Legal ds Landscape: ===<br />
<br />
[[File:US_Legal_ds_Landscape.svg|800px]]<br />
<br />
=== US Ledger ds Landscape: ===<br />
<br />
[[File:US_Ledger_ds_Landscape.svg|800px]]<br />
<br />
==Other standards available==<br />
<br />
* [[ANSI_templates|ANSI templates]]: according to American National Standards Institute [http://en.wikipedia.org/wiki/American_National_Standards_Institute ANSI] standard<br />
* [[Arch_templates|Arch templates]]: according to American National Standards Institute [http://en.wikipedia.org/wiki/American_National_Standards_Institute Arch] standard <br />
* [[Misc_templates|Misc templates]]: mixed templates<br />
<br />
<br />
[[Category:Documentation]]<br />
<br />
<languages/></div>Bravikovhttps://wiki.freecad.org/index.php?title=Translations:Drawing_templates/22/ru&diff=194624Translations:Drawing templates/22/ru2016-07-31T10:07:30Z<p>Bravikov: </p>
<hr />
<div>Дополнительно, начиная с FreeCAD 0.14 (ревизия 2995), в SVG-коде можно указать положение рамки и основной надписи. Так FreeCAD будет знать где можно располагать проекции, а где нет.</div>Bravikovhttps://wiki.freecad.org/index.php?title=Drawing_templates&diff=194623Drawing templates2016-07-31T10:05:00Z<p>Bravikov: Fixed "the the" to "to the".</p>
<hr />
<div><translate><br />
<br />
== SVG templates creation == <!--T:36--><br />
<br />
<!--T:1--><br />
Creating templates for the Drawing module is very easy. See also the tutorial [[Drawing_Template_HowTo]]. Templates 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:<br />
* One pixel = one millimeter<br />
* 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:<br />
</translate><br />
<syntaxhighlight><br />
<!-- DrawingContent --><br />
</syntaxhighlight><br />
<translate><br />
<!--T:22--><br />
In addition to these two rules, as of FreeCAD 0.14, Revision 2995, 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.<br />
<br />
<!--T:23--><br />
To define the Border, the following line must appear before the <metadata> tag in the svg file.<br />
</translate><br />
<syntaxhighlight><br />
<!-- Working space X1 Y1 X2 Y2 --><br />
</syntaxhighlight><br />
<translate><br />
<!--T:24--><br />
Where X1, Y1, X2, Y2 are defined as:<br />
* X1 is the X axis distance from the left edge of the page to the left side of the Border.<br />
* Y1 is the Y axis distance from the top edge of the page to the top of the Border.<br />
* X2 is the X axis distance from the left edge of the page to the right side of the Border.<br />
* Y2 is the Y axis distance from the top edge of the page to the bottom of the Border.<br />
</translate><br />
[[File:XY_Working_v2.svg]]<br />
<br />
<translate><br />
<!--T:25--><br />
To define the Title block the following line must be inserted before the <metadata tag and after the Working space tag.<br />
</translate><br />
<syntaxhighlight><br />
<!-- Title block X1a Y1a X2a Y2a --><br />
</syntaxhighlight><br />
<translate><br />
<!--T:26--><br />
Where X1a, Y1a, X2a, Y2a are defined as:<br />
* X1a is the X axis distance from the left edge of the page to the left side of the Title block<br />
* Y1a is the Y axis distance from the top edge of the page the the top of the Title block<br />
* X2a is the X Axis distance from the left edge of the page to the right side of the Title block<br />
* Y2a is the Y axis distance from the top edge of the page the the bottom of the Title block<br />
* X1a <= X1 or X2a >= X2<br />
* Y1a <= Y1 or Y2a >= Y2<br />
</translate><br />
[[File:XY_Title_v2.svg]]<br />
<br />
<translate><br />
<!--T:27--><br />
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:<br />
</translate><br />
<syntaxhighlight><br />
<!-- Working space X1 Y1 X2 Y2 --><br />
<!-- Title block X1a Y1a X2a Y2a --><br />
</syntaxhighlight><br />
<br />
<translate><br />
<!--T:34--><br />
In order to enable up to scale printing, the real word size has to be given in the width and height attributes of the SVG-Tag. The size of the document in user units, (px), has to be given in the viewBox attribute.<br />
<br />
<!--T:35--><br />
The following is to be formatted like the example below where:<br />
* xxx = pixel width<br />
* yyy = pixel height<br />
</translate><br />
<syntaxhighlight><br />
width="xxxmm"<br />
height="yyymm"<br />
viewBox="0 0 xxx yyy"<br />
</syntaxhighlight><br />
<translate><br />
<br />
<!--T:2--><br />
* Several custom attributes can be placed in templates. The list of currently supported attributes is available on the [[Svg Namespace]] page.<br />
<br />
== DXF templates == <!--T:37--><br />
<br />
<!--T:38--><br />
Since version 0.15, FreeCAD can reliably export a [[Drawing Module|Drawing]] page to the DXF format. This system also uses templates. If a dxf file with the same name is found in the same folder as the SVG template used for a page, it will be used for export. If not, a default empty template is created on the fly.<br />
<br />
<!--T:39--><br />
Consequently, if you create your own SVG templates, and wish to be able to export the Drawing pages that you create with it to DXF, you just need to create a corresponding DXF template, and save it with the same name in the same folder.<br />
<br />
<!--T:40--><br />
DXF templates can be created with any application that produces DXF files, such as LibreCAD. You then need to edit them with a text editor, and add two additional lines, one at the beginning or end of the BLOCKS section, and another at the beginning or end of the ENTITIES section, which are where FreeCAD will add its own blocks and entities.<br />
<br />
<!--T:41--><br />
A very simple template looks like this:<br />
<br />
<!--T:42--><br />
999<br />
FreeCAD DXF exporter v0.15<br />
0<br />
SECTION<br />
2<br />
HEADER<br />
9<br />
$ACADVER<br />
1<br />
AC1009<br />
0<br />
ENDSEC<br />
0<br />
SECTION<br />
2<br />
BLOCKS<br />
$blocks<br />
0<br />
ENDSEC<br />
0<br />
SECTION<br />
2<br />
ENTITIES<br />
$entities<br />
0<br />
ENDSEC<br />
0<br />
EOF<br />
<br />
<!--T:43--><br />
The above template doesn't contain any entity. If you create your DXF file with a CAD application, there will likely be much more content inside the HEADER, BLOCKS and ENTITIES sections.<br />
<br />
<!--T:44--><br />
The two lines that FreeCAD will be looking for are "$blocks" and "$entities". They must exist in the template, and they must be placed on their own line. You can choose to place them right after the BLOCKS or ENTITIES line, which is easier (just use the "search" function of your text editor to find them), or at the end, just before the "0 ENDSEC" lines (beware that there is one for each SECTION, make sure to use the ones relative to BLOCKS and ENTITIES). The latter method will place the FreeCAD objects after the objects defined in the template, which might be more logical.<br />
<br />
==A3 templates == <!--T:3--><br />
<br />
=== A3 Classic: === <!--T:4--><br />
[[Image:A3_Classic.svg|800px]]<br />
<br />
=== A3 Clean: === <!--T:5--><br />
[[Image:A3_Clean.svg|800px]]<br />
<br />
=== A3 Modern: === <!--T:6--><br />
[[Image:A3_Modern.svg|800px]]<br />
<br />
=== A3 Showcase: === <!--T:7--><br />
[[Image:A3_Showcase.svg|800px]]<br />
<br />
=== A3 Landscape english: === <!--T:8--><br />
[[File:A3_Landscape_english.svg|800px]]<br />
<br />
==A4 Templates == <!--T:9--><br />
<br />
=== A4 Landscape english: === <!--T:10--><br />
<br />
<!--T:11--><br />
[[File:A4_Landscape_english.svg|800px]]<br />
<br />
=== A4 Portrait 1 english:=== <!--T:12--><br />
<br />
<!--T:13--><br />
[[File:A4_Portrait_1_english.svg|400px]]<br />
<br />
==US Letter Templates == <!--T:14--><br />
<br />
=== US Letter landscape: === <!--T:15--><br />
<br />
<!--T:16--><br />
[[File:US_Letter_landscape.svg|800px]]<br />
<br />
<br />
=== US Letter portrait: === <!--T:17--><br />
<br />
<!--T:18--><br />
[[File:US_Letter_portrait.svg|400px]]<br />
<br />
=== US Letter ds Landscape: === <!--T:28--><br />
<br />
<!--T:29--><br />
[[File:US_Letter_ds_Landscape.svg|800px]]<br />
<br />
=== US Legal ds Landscape: === <!--T:30--><br />
<br />
<!--T:31--><br />
[[File:US_Legal_ds_Landscape.svg|800px]]<br />
<br />
=== US Ledger ds Landscape: === <!--T:32--><br />
<br />
<!--T:33--><br />
[[File:US_Ledger_ds_Landscape.svg|800px]]<br />
<br />
==Other standards available== <!--T:19--><br />
<br />
<!--T:20--><br />
* [[ANSI_templates|ANSI templates]]: according to American National Standards Institute [http://en.wikipedia.org/wiki/American_National_Standards_Institute ANSI] standard<br />
* [[Arch_templates|Arch templates]]: according to American National Standards Institute [http://en.wikipedia.org/wiki/American_National_Standards_Institute Arch] standard <br />
* [[Misc_templates|Misc templates]]: mixed templates<br />
<br />
<br />
<!--T:21--><br />
[[Category:Documentation]]<br />
<br />
</translate><br />
<languages/></div>Bravikovhttps://wiki.freecad.org/index.php?title=Drawing_templates/ru&diff=194621Drawing templates/ru2016-07-31T10:02:16Z<p>Bravikov: Created page with "Где: * X1 — расстояние по оси X между левой границей листа и левой стороной рамки. * Y1 — расстояние..."</p>
<hr />
<div><br />
== Создание SVG-шаблонов ==<br />
<br />
Создавать шаблоны для модуля чертежей (Drawing) легко и приятно. Смотрите также [[Drawing_Template_HowTo|руководство по созданию шаблонов чертежей]]. Шаблон — это файл в формате SVG, который можно создать в любой программе способной экспортировать SVG, например [http://www.inkscape.org Inkscape]. Необходимо соблюдать только два правила:<br />
* 1 пиксель = 1 миллиметру.<br />
* Где-нибудь в SVG-код, там где будет размещен чертеж, требуется вставить (например, в конец файла перед тегом </svg>) следующую строку:<br />
<syntaxhighlight><br />
<!-- DrawingContent --><br />
</syntaxhighlight><br />
Дополнительно, начиная с FreeCAD 0.14 (ревизия 2995), в SVG-коде можно указать координаты рамки и основной надписи. Так FreeCAD будет знать где можно располагать проекции, а где нет.<br />
<br />
Чтобы задать рамку, следующую строку необходимом вставить перед тегом <metadata>:<br />
<syntaxhighlight><br />
<!-- Working space X1 Y1 X2 Y2 --><br />
</syntaxhighlight><br />
Где:<br />
* X1 — расстояние по оси X между левой границей листа и левой стороной рамки.<br />
* Y1 — расстояние по оси Y между верхней границей листа и верхней стороной рамки.<br />
* X2 — расстояние по оси X между левой границей листа и правой стороной рамки.<br />
* Y2 — расстояние по оси Y между верхней границей листа и нижней стороной рамки.<br />
[[File:XY_Working_v2.svg]]<br />
<br />
To define the Title block the following line must be inserted before the <metadata tag and after the Working space tag.<br />
<syntaxhighlight><br />
<!-- Title block X1a Y1a X2a Y2a --><br />
</syntaxhighlight><br />
Where X1a, Y1a, X2a, Y2a are defined as:<br />
* X1a is the X axis distance from the left edge of the page to the left side of the Title block<br />
* Y1a is the Y axis distance from the top edge of the page the the top of the Title block<br />
* X2a is the X Axis distance from the left edge of the page to the right side of the Title block<br />
* Y2a is the Y axis distance from the top edge of the page the the bottom of the Title block<br />
* X1a <= X1 or X2a >= X2<br />
* Y1a <= Y1 or Y2a >= Y2<br />
[[File:XY_Title_v2.svg]]<br />
<br />
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:<br />
<syntaxhighlight><br />
<!-- Working space X1 Y1 X2 Y2 --><br />
<!-- Title block X1a Y1a X2a Y2a --><br />
</syntaxhighlight><br />
<br />
In order to enable up to scale printing, the real word size has to be given in the width and height attributes of the SVG-Tag. The size of the document in user units, (px), has to be given in the viewBox attribute.<br />
<br />
The following is to be formatted like the example below where:<br />
* xxx = pixel width<br />
* yyy = pixel height<br />
<syntaxhighlight><br />
width="xxxmm"<br />
height="yyymm"<br />
viewBox="0 0 xxx yyy"<br />
</syntaxhighlight><br />
<br />
* Several custom attributes can be placed in templates. The list of currently supported attributes is available on the [[Svg Namespace]] page.<br />
<br />
== DXF templates ==<br />
<br />
Since version 0.15, FreeCAD can reliably export a [[Drawing Module|Drawing]] page to the DXF format. This system also uses templates. If a dxf file with the same name is found in the same folder as the SVG template used for a page, it will be used for export. If not, a default empty template is created on the fly.<br />
<br />
Consequently, if you create your own SVG templates, and wish to be able to export the Drawing pages that you create with it to DXF, you just need to create a corresponding DXF template, and save it with the same name in the same folder.<br />
<br />
DXF templates can be created with any application that produces DXF files, such as LibreCAD. You then need to edit them with a text editor, and add two additional lines, one at the beginning or end of the BLOCKS section, and another at the beginning or end of the ENTITIES section, which are where FreeCAD will add its own blocks and entities.<br />
<br />
A very simple template looks like this:<br />
<br />
999<br />
FreeCAD DXF exporter v0.15<br />
0<br />
SECTION<br />
2<br />
HEADER<br />
9<br />
$ACADVER<br />
1<br />
AC1009<br />
0<br />
ENDSEC<br />
0<br />
SECTION<br />
2<br />
BLOCKS<br />
$blocks<br />
0<br />
ENDSEC<br />
0<br />
SECTION<br />
2<br />
ENTITIES<br />
$entities<br />
0<br />
ENDSEC<br />
0<br />
EOF<br />
<br />
The above template doesn't contain any entity. If you create your DXF file with a CAD application, there will likely be much more content inside the HEADER, BLOCKS and ENTITIES sections.<br />
<br />
The two lines that FreeCAD will be looking for are "$blocks" and "$entities". They must exist in the template, and they must be placed on their own line. You can choose to place them right after the BLOCKS or ENTITIES line, which is easier (just use the "search" function of your text editor to find them), or at the end, just before the "0 ENDSEC" lines (beware that there is one for each SECTION, make sure to use the ones relative to BLOCKS and ENTITIES). The latter method will place the FreeCAD objects after the objects defined in the template, which might be more logical.<br />
<br />
==A3 templates ==<br />
<br />
=== A3 Classic: ===<br />
[[Image:A3_Classic.svg|800px]]<br />
<br />
=== A3 Clean: ===<br />
[[Image:A3_Clean.svg|800px]]<br />
<br />
=== A3 Modern: ===<br />
[[Image:A3_Modern.svg|800px]]<br />
<br />
=== A3 Showcase: ===<br />
[[Image:A3_Showcase.svg|800px]]<br />
<br />
=== A3 Landscape english: ===<br />
[[File:A3_Landscape_english.svg|800px]]<br />
<br />
==A4 Templates ==<br />
<br />
=== A4 Landscape english: ===<br />
<br />
[[File:A4_Landscape_english.svg|800px]]<br />
<br />
=== A4 Portrait 1 english:===<br />
<br />
[[File:A4_Portrait_1_english.svg|400px]]<br />
<br />
==US Letter Templates ==<br />
<br />
=== US Letter landscape: ===<br />
<br />
[[File:US_Letter_landscape.svg|800px]]<br />
<br />
<br />
=== US Letter portrait: ===<br />
<br />
[[File:US_Letter_portrait.svg|400px]]<br />
<br />
=== US Letter ds Landscape: ===<br />
<br />
[[File:US_Letter_ds_Landscape.svg|800px]]<br />
<br />
=== US Legal ds Landscape: ===<br />
<br />
[[File:US_Legal_ds_Landscape.svg|800px]]<br />
<br />
=== US Ledger ds Landscape: ===<br />
<br />
[[File:US_Ledger_ds_Landscape.svg|800px]]<br />
<br />
==Other standards available==<br />
<br />
* [[ANSI_templates|ANSI templates]]: according to American National Standards Institute [http://en.wikipedia.org/wiki/American_National_Standards_Institute ANSI] standard<br />
* [[Arch_templates|Arch templates]]: according to American National Standards Institute [http://en.wikipedia.org/wiki/American_National_Standards_Institute Arch] standard <br />
* [[Misc_templates|Misc templates]]: mixed templates<br />
<br />
<br />
[[Category:Documentation]]<br />
<br />
<languages/></div>Bravikovhttps://wiki.freecad.org/index.php?title=Translations:Drawing_templates/24/ru&diff=194620Translations:Drawing templates/24/ru2016-07-31T10:02:15Z<p>Bravikov: Created page with "Где: * X1 — расстояние по оси X между левой границей листа и левой стороной рамки. * Y1 — расстояние..."</p>
<hr />
<div>Где:<br />
* X1 — расстояние по оси X между левой границей листа и левой стороной рамки.<br />
* Y1 — расстояние по оси Y между верхней границей листа и верхней стороной рамки.<br />
* X2 — расстояние по оси X между левой границей листа и правой стороной рамки.<br />
* Y2 — расстояние по оси Y между верхней границей листа и нижней стороной рамки.</div>Bravikovhttps://wiki.freecad.org/index.php?title=Drawing_templates/ru&diff=194611Drawing templates/ru2016-07-31T09:46:48Z<p>Bravikov: Created page with "Чтобы задать рамку, следующую строку необходимом вставить перед тегом <metadata>:"</p>
<hr />
<div><br />
== Создание SVG-шаблонов ==<br />
<br />
Создавать шаблоны для модуля чертежей (Drawing) легко и приятно. Смотрите также [[Drawing_Template_HowTo|руководство по созданию шаблонов чертежей]]. Шаблон — это файл в формате SVG, который можно создать в любой программе способной экспортировать SVG, например [http://www.inkscape.org Inkscape]. Необходимо соблюдать только два правила:<br />
* 1 пиксель = 1 миллиметру.<br />
* Где-нибудь в SVG-код, там где будет размещен чертеж, требуется вставить (например, в конец файла перед тегом </svg>) следующую строку:<br />
<syntaxhighlight><br />
<!-- DrawingContent --><br />
</syntaxhighlight><br />
Дополнительно, начиная с FreeCAD 0.14 (ревизия 2995), в SVG-коде можно указать координаты рамки и основной надписи. Так FreeCAD будет знать где можно располагать проекции, а где нет.<br />
<br />
Чтобы задать рамку, следующую строку необходимом вставить перед тегом <metadata>:<br />
<syntaxhighlight><br />
<!-- Working space X1 Y1 X2 Y2 --><br />
</syntaxhighlight><br />
Where X1, Y1, X2, Y2 are defined as:<br />
* X1 is the X axis distance from the left edge of the page to the left side of the Border.<br />
* Y1 is the Y axis distance from the top edge of the page the the top of the Border.<br />
* X2 is the X axis distance from the left edge of the page to the right side of the Border.<br />
* Y2 is the Y axis distance from the top edge of the page the the bottom of the Border.<br />
[[File:XY_Working_v2.svg]]<br />
<br />
To define the Title block the following line must be inserted before the <metadata tag and after the Working space tag.<br />
<syntaxhighlight><br />
<!-- Title block X1a Y1a X2a Y2a --><br />
</syntaxhighlight><br />
Where X1a, Y1a, X2a, Y2a are defined as:<br />
* X1a is the X axis distance from the left edge of the page to the left side of the Title block<br />
* Y1a is the Y axis distance from the top edge of the page the the top of the Title block<br />
* X2a is the X Axis distance from the left edge of the page to the right side of the Title block<br />
* Y2a is the Y axis distance from the top edge of the page the the bottom of the Title block<br />
* X1a <= X1 or X2a >= X2<br />
* Y1a <= Y1 or Y2a >= Y2<br />
[[File:XY_Title_v2.svg]]<br />
<br />
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:<br />
<syntaxhighlight><br />
<!-- Working space X1 Y1 X2 Y2 --><br />
<!-- Title block X1a Y1a X2a Y2a --><br />
</syntaxhighlight><br />
<br />
In order to enable up to scale printing, the real word size has to be given in the width and height attributes of the SVG-Tag. The size of the document in user units, (px), has to be given in the viewBox attribute.<br />
<br />
The following is to be formatted like the example below where:<br />
* xxx = pixel width<br />
* yyy = pixel height<br />
<syntaxhighlight><br />
width="xxxmm"<br />
height="yyymm"<br />
viewBox="0 0 xxx yyy"<br />
</syntaxhighlight><br />
<br />
* Several custom attributes can be placed in templates. The list of currently supported attributes is available on the [[Svg Namespace]] page.<br />
<br />
== DXF templates ==<br />
<br />
Since version 0.15, FreeCAD can reliably export a [[Drawing Module|Drawing]] page to the DXF format. This system also uses templates. If a dxf file with the same name is found in the same folder as the SVG template used for a page, it will be used for export. If not, a default empty template is created on the fly.<br />
<br />
Consequently, if you create your own SVG templates, and wish to be able to export the Drawing pages that you create with it to DXF, you just need to create a corresponding DXF template, and save it with the same name in the same folder.<br />
<br />
DXF templates can be created with any application that produces DXF files, such as LibreCAD. You then need to edit them with a text editor, and add two additional lines, one at the beginning or end of the BLOCKS section, and another at the beginning or end of the ENTITIES section, which are where FreeCAD will add its own blocks and entities.<br />
<br />
A very simple template looks like this:<br />
<br />
999<br />
FreeCAD DXF exporter v0.15<br />
0<br />
SECTION<br />
2<br />
HEADER<br />
9<br />
$ACADVER<br />
1<br />
AC1009<br />
0<br />
ENDSEC<br />
0<br />
SECTION<br />
2<br />
BLOCKS<br />
$blocks<br />
0<br />
ENDSEC<br />
0<br />
SECTION<br />
2<br />
ENTITIES<br />
$entities<br />
0<br />
ENDSEC<br />
0<br />
EOF<br />
<br />
The above template doesn't contain any entity. If you create your DXF file with a CAD application, there will likely be much more content inside the HEADER, BLOCKS and ENTITIES sections.<br />
<br />
The two lines that FreeCAD will be looking for are "$blocks" and "$entities". They must exist in the template, and they must be placed on their own line. You can choose to place them right after the BLOCKS or ENTITIES line, which is easier (just use the "search" function of your text editor to find them), or at the end, just before the "0 ENDSEC" lines (beware that there is one for each SECTION, make sure to use the ones relative to BLOCKS and ENTITIES). The latter method will place the FreeCAD objects after the objects defined in the template, which might be more logical.<br />
<br />
==A3 templates ==<br />
<br />
=== A3 Classic: ===<br />
[[Image:A3_Classic.svg|800px]]<br />
<br />
=== A3 Clean: ===<br />
[[Image:A3_Clean.svg|800px]]<br />
<br />
=== A3 Modern: ===<br />
[[Image:A3_Modern.svg|800px]]<br />
<br />
=== A3 Showcase: ===<br />
[[Image:A3_Showcase.svg|800px]]<br />
<br />
=== A3 Landscape english: ===<br />
[[File:A3_Landscape_english.svg|800px]]<br />
<br />
==A4 Templates ==<br />
<br />
=== A4 Landscape english: ===<br />
<br />
[[File:A4_Landscape_english.svg|800px]]<br />
<br />
=== A4 Portrait 1 english:===<br />
<br />
[[File:A4_Portrait_1_english.svg|400px]]<br />
<br />
==US Letter Templates ==<br />
<br />
=== US Letter landscape: ===<br />
<br />
[[File:US_Letter_landscape.svg|800px]]<br />
<br />
<br />
=== US Letter portrait: ===<br />
<br />
[[File:US_Letter_portrait.svg|400px]]<br />
<br />
=== US Letter ds Landscape: ===<br />
<br />
[[File:US_Letter_ds_Landscape.svg|800px]]<br />
<br />
=== US Legal ds Landscape: ===<br />
<br />
[[File:US_Legal_ds_Landscape.svg|800px]]<br />
<br />
=== US Ledger ds Landscape: ===<br />
<br />
[[File:US_Ledger_ds_Landscape.svg|800px]]<br />
<br />
==Other standards available==<br />
<br />
* [[ANSI_templates|ANSI templates]]: according to American National Standards Institute [http://en.wikipedia.org/wiki/American_National_Standards_Institute ANSI] standard<br />
* [[Arch_templates|Arch templates]]: according to American National Standards Institute [http://en.wikipedia.org/wiki/American_National_Standards_Institute Arch] standard <br />
* [[Misc_templates|Misc templates]]: mixed templates<br />
<br />
<br />
[[Category:Documentation]]<br />
<br />
<languages/></div>Bravikovhttps://wiki.freecad.org/index.php?title=Translations:Drawing_templates/23/ru&diff=194610Translations:Drawing templates/23/ru2016-07-31T09:46:47Z<p>Bravikov: Created page with "Чтобы задать рамку, следующую строку необходимом вставить перед тегом <metadata>:"</p>
<hr />
<div>Чтобы задать рамку, следующую строку необходимом вставить перед тегом <metadata>:</div>Bravikovhttps://wiki.freecad.org/index.php?title=Drawing_templates/ru&diff=194609Drawing templates/ru2016-07-31T09:41:20Z<p>Bravikov: </p>
<hr />
<div><br />
== Создание SVG-шаблонов ==<br />
<br />
Создавать шаблоны для модуля чертежей (Drawing) легко и приятно. Смотрите также [[Drawing_Template_HowTo|руководство по созданию шаблонов чертежей]]. Шаблон — это файл в формате SVG, который можно создать в любой программе способной экспортировать SVG, например [http://www.inkscape.org Inkscape]. Необходимо соблюдать только два правила:<br />
* 1 пиксель = 1 миллиметру.<br />
* Где-нибудь в SVG-код, там где будет размещен чертеж, требуется вставить (например, в конец файла перед тегом </svg>) следующую строку:<br />
<syntaxhighlight><br />
<!-- DrawingContent --><br />
</syntaxhighlight><br />
Дополнительно, начиная с FreeCAD 0.14 (ревизия 2995), в SVG-коде можно указать координаты рамки и основной надписи. Так FreeCAD будет знать где можно располагать проекции, а где нет.<br />
<br />
To define the Border, the following line must appear before the <metadata tag in the svg file.<br />
<syntaxhighlight><br />
<!-- Working space X1 Y1 X2 Y2 --><br />
</syntaxhighlight><br />
Where X1, Y1, X2, Y2 are defined as:<br />
* X1 is the X axis distance from the left edge of the page to the left side of the Border.<br />
* Y1 is the Y axis distance from the top edge of the page the the top of the Border.<br />
* X2 is the X axis distance from the left edge of the page to the right side of the Border.<br />
* Y2 is the Y axis distance from the top edge of the page the the bottom of the Border.<br />
[[File:XY_Working_v2.svg]]<br />
<br />
To define the Title block the following line must be inserted before the <metadata tag and after the Working space tag.<br />
<syntaxhighlight><br />
<!-- Title block X1a Y1a X2a Y2a --><br />
</syntaxhighlight><br />
Where X1a, Y1a, X2a, Y2a are defined as:<br />
* X1a is the X axis distance from the left edge of the page to the left side of the Title block<br />
* Y1a is the Y axis distance from the top edge of the page the the top of the Title block<br />
* X2a is the X Axis distance from the left edge of the page to the right side of the Title block<br />
* Y2a is the Y axis distance from the top edge of the page the the bottom of the Title block<br />
* X1a <= X1 or X2a >= X2<br />
* Y1a <= Y1 or Y2a >= Y2<br />
[[File:XY_Title_v2.svg]]<br />
<br />
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:<br />
<syntaxhighlight><br />
<!-- Working space X1 Y1 X2 Y2 --><br />
<!-- Title block X1a Y1a X2a Y2a --><br />
</syntaxhighlight><br />
<br />
In order to enable up to scale printing, the real word size has to be given in the width and height attributes of the SVG-Tag. The size of the document in user units, (px), has to be given in the viewBox attribute.<br />
<br />
The following is to be formatted like the example below where:<br />
* xxx = pixel width<br />
* yyy = pixel height<br />
<syntaxhighlight><br />
width="xxxmm"<br />
height="yyymm"<br />
viewBox="0 0 xxx yyy"<br />
</syntaxhighlight><br />
<br />
* Several custom attributes can be placed in templates. The list of currently supported attributes is available on the [[Svg Namespace]] page.<br />
<br />
== DXF templates ==<br />
<br />
Since version 0.15, FreeCAD can reliably export a [[Drawing Module|Drawing]] page to the DXF format. This system also uses templates. If a dxf file with the same name is found in the same folder as the SVG template used for a page, it will be used for export. If not, a default empty template is created on the fly.<br />
<br />
Consequently, if you create your own SVG templates, and wish to be able to export the Drawing pages that you create with it to DXF, you just need to create a corresponding DXF template, and save it with the same name in the same folder.<br />
<br />
DXF templates can be created with any application that produces DXF files, such as LibreCAD. You then need to edit them with a text editor, and add two additional lines, one at the beginning or end of the BLOCKS section, and another at the beginning or end of the ENTITIES section, which are where FreeCAD will add its own blocks and entities.<br />
<br />
A very simple template looks like this:<br />
<br />
999<br />
FreeCAD DXF exporter v0.15<br />
0<br />
SECTION<br />
2<br />
HEADER<br />
9<br />
$ACADVER<br />
1<br />
AC1009<br />
0<br />
ENDSEC<br />
0<br />
SECTION<br />
2<br />
BLOCKS<br />
$blocks<br />
0<br />
ENDSEC<br />
0<br />
SECTION<br />
2<br />
ENTITIES<br />
$entities<br />
0<br />
ENDSEC<br />
0<br />
EOF<br />
<br />
The above template doesn't contain any entity. If you create your DXF file with a CAD application, there will likely be much more content inside the HEADER, BLOCKS and ENTITIES sections.<br />
<br />
The two lines that FreeCAD will be looking for are "$blocks" and "$entities". They must exist in the template, and they must be placed on their own line. You can choose to place them right after the BLOCKS or ENTITIES line, which is easier (just use the "search" function of your text editor to find them), or at the end, just before the "0 ENDSEC" lines (beware that there is one for each SECTION, make sure to use the ones relative to BLOCKS and ENTITIES). The latter method will place the FreeCAD objects after the objects defined in the template, which might be more logical.<br />
<br />
==A3 templates ==<br />
<br />
=== A3 Classic: ===<br />
[[Image:A3_Classic.svg|800px]]<br />
<br />
=== A3 Clean: ===<br />
[[Image:A3_Clean.svg|800px]]<br />
<br />
=== A3 Modern: ===<br />
[[Image:A3_Modern.svg|800px]]<br />
<br />
=== A3 Showcase: ===<br />
[[Image:A3_Showcase.svg|800px]]<br />
<br />
=== A3 Landscape english: ===<br />
[[File:A3_Landscape_english.svg|800px]]<br />
<br />
==A4 Templates ==<br />
<br />
=== A4 Landscape english: ===<br />
<br />
[[File:A4_Landscape_english.svg|800px]]<br />
<br />
=== A4 Portrait 1 english:===<br />
<br />
[[File:A4_Portrait_1_english.svg|400px]]<br />
<br />
==US Letter Templates ==<br />
<br />
=== US Letter landscape: ===<br />
<br />
[[File:US_Letter_landscape.svg|800px]]<br />
<br />
<br />
=== US Letter portrait: ===<br />
<br />
[[File:US_Letter_portrait.svg|400px]]<br />
<br />
=== US Letter ds Landscape: ===<br />
<br />
[[File:US_Letter_ds_Landscape.svg|800px]]<br />
<br />
=== US Legal ds Landscape: ===<br />
<br />
[[File:US_Legal_ds_Landscape.svg|800px]]<br />
<br />
=== US Ledger ds Landscape: ===<br />
<br />
[[File:US_Ledger_ds_Landscape.svg|800px]]<br />
<br />
==Other standards available==<br />
<br />
* [[ANSI_templates|ANSI templates]]: according to American National Standards Institute [http://en.wikipedia.org/wiki/American_National_Standards_Institute ANSI] standard<br />
* [[Arch_templates|Arch templates]]: according to American National Standards Institute [http://en.wikipedia.org/wiki/American_National_Standards_Institute Arch] standard <br />
* [[Misc_templates|Misc templates]]: mixed templates<br />
<br />
<br />
[[Category:Documentation]]<br />
<br />
<languages/></div>Bravikovhttps://wiki.freecad.org/index.php?title=Translations:Drawing_templates/22/ru&diff=194608Translations:Drawing templates/22/ru2016-07-31T09:41:19Z<p>Bravikov: </p>
<hr />
<div>Дополнительно, начиная с FreeCAD 0.14 (ревизия 2995), в SVG-коде можно указать координаты рамки и основной надписи. Так FreeCAD будет знать где можно располагать проекции, а где нет.</div>Bravikovhttps://wiki.freecad.org/index.php?title=Drawing_templates/ru&diff=194607Drawing templates/ru2016-07-31T09:40:17Z<p>Bravikov: Created page with "Дополнительно, начиная с FreeCAD 0.14 (ревизия 2995), можно добавить координаты рамки и основной надпис..."</p>
<hr />
<div><br />
== Создание SVG-шаблонов ==<br />
<br />
Создавать шаблоны для модуля чертежей (Drawing) легко и приятно. Смотрите также [[Drawing_Template_HowTo|руководство по созданию шаблонов чертежей]]. Шаблон — это файл в формате SVG, который можно создать в любой программе способной экспортировать SVG, например [http://www.inkscape.org Inkscape]. Необходимо соблюдать только два правила:<br />
* 1 пиксель = 1 миллиметру.<br />
* Где-нибудь в SVG-код, там где будет размещен чертеж, требуется вставить (например, в конец файла перед тегом </svg>) следующую строку:<br />
<syntaxhighlight><br />
<!-- DrawingContent --><br />
</syntaxhighlight><br />
Дополнительно, начиная с FreeCAD 0.14 (ревизия 2995), можно добавить координаты рамки и основной надписи. Так FreeCAD будет знать где можно располагать проекции, а где нет.<br />
<br />
To define the Border, the following line must appear before the <metadata tag in the svg file.<br />
<syntaxhighlight><br />
<!-- Working space X1 Y1 X2 Y2 --><br />
</syntaxhighlight><br />
Where X1, Y1, X2, Y2 are defined as:<br />
* X1 is the X axis distance from the left edge of the page to the left side of the Border.<br />
* Y1 is the Y axis distance from the top edge of the page the the top of the Border.<br />
* X2 is the X axis distance from the left edge of the page to the right side of the Border.<br />
* Y2 is the Y axis distance from the top edge of the page the the bottom of the Border.<br />
[[File:XY_Working_v2.svg]]<br />
<br />
To define the Title block the following line must be inserted before the <metadata tag and after the Working space tag.<br />
<syntaxhighlight><br />
<!-- Title block X1a Y1a X2a Y2a --><br />
</syntaxhighlight><br />
Where X1a, Y1a, X2a, Y2a are defined as:<br />
* X1a is the X axis distance from the left edge of the page to the left side of the Title block<br />
* Y1a is the Y axis distance from the top edge of the page the the top of the Title block<br />
* X2a is the X Axis distance from the left edge of the page to the right side of the Title block<br />
* Y2a is the Y axis distance from the top edge of the page the the bottom of the Title block<br />
* X1a <= X1 or X2a >= X2<br />
* Y1a <= Y1 or Y2a >= Y2<br />
[[File:XY_Title_v2.svg]]<br />
<br />
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:<br />
<syntaxhighlight><br />
<!-- Working space X1 Y1 X2 Y2 --><br />
<!-- Title block X1a Y1a X2a Y2a --><br />
</syntaxhighlight><br />
<br />
In order to enable up to scale printing, the real word size has to be given in the width and height attributes of the SVG-Tag. The size of the document in user units, (px), has to be given in the viewBox attribute.<br />
<br />
The following is to be formatted like the example below where:<br />
* xxx = pixel width<br />
* yyy = pixel height<br />
<syntaxhighlight><br />
width="xxxmm"<br />
height="yyymm"<br />
viewBox="0 0 xxx yyy"<br />
</syntaxhighlight><br />
<br />
* Several custom attributes can be placed in templates. The list of currently supported attributes is available on the [[Svg Namespace]] page.<br />
<br />
== DXF templates ==<br />
<br />
Since version 0.15, FreeCAD can reliably export a [[Drawing Module|Drawing]] page to the DXF format. This system also uses templates. If a dxf file with the same name is found in the same folder as the SVG template used for a page, it will be used for export. If not, a default empty template is created on the fly.<br />
<br />
Consequently, if you create your own SVG templates, and wish to be able to export the Drawing pages that you create with it to DXF, you just need to create a corresponding DXF template, and save it with the same name in the same folder.<br />
<br />
DXF templates can be created with any application that produces DXF files, such as LibreCAD. You then need to edit them with a text editor, and add two additional lines, one at the beginning or end of the BLOCKS section, and another at the beginning or end of the ENTITIES section, which are where FreeCAD will add its own blocks and entities.<br />
<br />
A very simple template looks like this:<br />
<br />
999<br />
FreeCAD DXF exporter v0.15<br />
0<br />
SECTION<br />
2<br />
HEADER<br />
9<br />
$ACADVER<br />
1<br />
AC1009<br />
0<br />
ENDSEC<br />
0<br />
SECTION<br />
2<br />
BLOCKS<br />
$blocks<br />
0<br />
ENDSEC<br />
0<br />
SECTION<br />
2<br />
ENTITIES<br />
$entities<br />
0<br />
ENDSEC<br />
0<br />
EOF<br />
<br />
The above template doesn't contain any entity. If you create your DXF file with a CAD application, there will likely be much more content inside the HEADER, BLOCKS and ENTITIES sections.<br />
<br />
The two lines that FreeCAD will be looking for are "$blocks" and "$entities". They must exist in the template, and they must be placed on their own line. You can choose to place them right after the BLOCKS or ENTITIES line, which is easier (just use the "search" function of your text editor to find them), or at the end, just before the "0 ENDSEC" lines (beware that there is one for each SECTION, make sure to use the ones relative to BLOCKS and ENTITIES). The latter method will place the FreeCAD objects after the objects defined in the template, which might be more logical.<br />
<br />
==A3 templates ==<br />
<br />
=== A3 Classic: ===<br />
[[Image:A3_Classic.svg|800px]]<br />
<br />
=== A3 Clean: ===<br />
[[Image:A3_Clean.svg|800px]]<br />
<br />
=== A3 Modern: ===<br />
[[Image:A3_Modern.svg|800px]]<br />
<br />
=== A3 Showcase: ===<br />
[[Image:A3_Showcase.svg|800px]]<br />
<br />
=== A3 Landscape english: ===<br />
[[File:A3_Landscape_english.svg|800px]]<br />
<br />
==A4 Templates ==<br />
<br />
=== A4 Landscape english: ===<br />
<br />
[[File:A4_Landscape_english.svg|800px]]<br />
<br />
=== A4 Portrait 1 english:===<br />
<br />
[[File:A4_Portrait_1_english.svg|400px]]<br />
<br />
==US Letter Templates ==<br />
<br />
=== US Letter landscape: ===<br />
<br />
[[File:US_Letter_landscape.svg|800px]]<br />
<br />
<br />
=== US Letter portrait: ===<br />
<br />
[[File:US_Letter_portrait.svg|400px]]<br />
<br />
=== US Letter ds Landscape: ===<br />
<br />
[[File:US_Letter_ds_Landscape.svg|800px]]<br />
<br />
=== US Legal ds Landscape: ===<br />
<br />
[[File:US_Legal_ds_Landscape.svg|800px]]<br />
<br />
=== US Ledger ds Landscape: ===<br />
<br />
[[File:US_Ledger_ds_Landscape.svg|800px]]<br />
<br />
==Other standards available==<br />
<br />
* [[ANSI_templates|ANSI templates]]: according to American National Standards Institute [http://en.wikipedia.org/wiki/American_National_Standards_Institute ANSI] standard<br />
* [[Arch_templates|Arch templates]]: according to American National Standards Institute [http://en.wikipedia.org/wiki/American_National_Standards_Institute Arch] standard <br />
* [[Misc_templates|Misc templates]]: mixed templates<br />
<br />
<br />
[[Category:Documentation]]<br />
<br />
<languages/></div>Bravikovhttps://wiki.freecad.org/index.php?title=Translations:Drawing_templates/22/ru&diff=194606Translations:Drawing templates/22/ru2016-07-31T09:40:16Z<p>Bravikov: Created page with "Дополнительно, начиная с FreeCAD 0.14 (ревизия 2995), можно добавить координаты рамки и основной надпис..."</p>
<hr />
<div>Дополнительно, начиная с FreeCAD 0.14 (ревизия 2995), можно добавить координаты рамки и основной надписи. Так FreeCAD будет знать где можно располагать проекции, а где нет.</div>Bravikovhttps://wiki.freecad.org/index.php?title=Drawing_templates/ru&diff=194605Drawing templates/ru2016-07-31T09:31:18Z<p>Bravikov: </p>
<hr />
<div><br />
== Создание SVG-шаблонов ==<br />
<br />
Создавать шаблоны для модуля чертежей (Drawing) легко и приятно. Смотрите также [[Drawing_Template_HowTo|руководство по созданию шаблонов чертежей]]. Шаблон — это файл в формате SVG, который можно создать в любой программе способной экспортировать SVG, например [http://www.inkscape.org Inkscape]. Необходимо соблюдать только два правила:<br />
* 1 пиксель = 1 миллиметру.<br />
* Где-нибудь в SVG-код, там где будет размещен чертеж, требуется вставить (например, в конец файла перед тегом </svg>) следующую строку:<br />
<syntaxhighlight><br />
<!-- DrawingContent --><br />
</syntaxhighlight><br />
In addition to these two rules, as of FreeCAD 0.14, Revision 2995, 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.<br />
<br />
To define the Border, the following line must appear before the <metadata tag in the svg file.<br />
<syntaxhighlight><br />
<!-- Working space X1 Y1 X2 Y2 --><br />
</syntaxhighlight><br />
Where X1, Y1, X2, Y2 are defined as:<br />
* X1 is the X axis distance from the left edge of the page to the left side of the Border.<br />
* Y1 is the Y axis distance from the top edge of the page the the top of the Border.<br />
* X2 is the X axis distance from the left edge of the page to the right side of the Border.<br />
* Y2 is the Y axis distance from the top edge of the page the the bottom of the Border.<br />
[[File:XY_Working_v2.svg]]<br />
<br />
To define the Title block the following line must be inserted before the <metadata tag and after the Working space tag.<br />
<syntaxhighlight><br />
<!-- Title block X1a Y1a X2a Y2a --><br />
</syntaxhighlight><br />
Where X1a, Y1a, X2a, Y2a are defined as:<br />
* X1a is the X axis distance from the left edge of the page to the left side of the Title block<br />
* Y1a is the Y axis distance from the top edge of the page the the top of the Title block<br />
* X2a is the X Axis distance from the left edge of the page to the right side of the Title block<br />
* Y2a is the Y axis distance from the top edge of the page the the bottom of the Title block<br />
* X1a <= X1 or X2a >= X2<br />
* Y1a <= Y1 or Y2a >= Y2<br />
[[File:XY_Title_v2.svg]]<br />
<br />
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:<br />
<syntaxhighlight><br />
<!-- Working space X1 Y1 X2 Y2 --><br />
<!-- Title block X1a Y1a X2a Y2a --><br />
</syntaxhighlight><br />
<br />
In order to enable up to scale printing, the real word size has to be given in the width and height attributes of the SVG-Tag. The size of the document in user units, (px), has to be given in the viewBox attribute.<br />
<br />
The following is to be formatted like the example below where:<br />
* xxx = pixel width<br />
* yyy = pixel height<br />
<syntaxhighlight><br />
width="xxxmm"<br />
height="yyymm"<br />
viewBox="0 0 xxx yyy"<br />
</syntaxhighlight><br />
<br />
* Several custom attributes can be placed in templates. The list of currently supported attributes is available on the [[Svg Namespace]] page.<br />
<br />
== DXF templates ==<br />
<br />
Since version 0.15, FreeCAD can reliably export a [[Drawing Module|Drawing]] page to the DXF format. This system also uses templates. If a dxf file with the same name is found in the same folder as the SVG template used for a page, it will be used for export. If not, a default empty template is created on the fly.<br />
<br />
Consequently, if you create your own SVG templates, and wish to be able to export the Drawing pages that you create with it to DXF, you just need to create a corresponding DXF template, and save it with the same name in the same folder.<br />
<br />
DXF templates can be created with any application that produces DXF files, such as LibreCAD. You then need to edit them with a text editor, and add two additional lines, one at the beginning or end of the BLOCKS section, and another at the beginning or end of the ENTITIES section, which are where FreeCAD will add its own blocks and entities.<br />
<br />
A very simple template looks like this:<br />
<br />
999<br />
FreeCAD DXF exporter v0.15<br />
0<br />
SECTION<br />
2<br />
HEADER<br />
9<br />
$ACADVER<br />
1<br />
AC1009<br />
0<br />
ENDSEC<br />
0<br />
SECTION<br />
2<br />
BLOCKS<br />
$blocks<br />
0<br />
ENDSEC<br />
0<br />
SECTION<br />
2<br />
ENTITIES<br />
$entities<br />
0<br />
ENDSEC<br />
0<br />
EOF<br />
<br />
The above template doesn't contain any entity. If you create your DXF file with a CAD application, there will likely be much more content inside the HEADER, BLOCKS and ENTITIES sections.<br />
<br />
The two lines that FreeCAD will be looking for are "$blocks" and "$entities". They must exist in the template, and they must be placed on their own line. You can choose to place them right after the BLOCKS or ENTITIES line, which is easier (just use the "search" function of your text editor to find them), or at the end, just before the "0 ENDSEC" lines (beware that there is one for each SECTION, make sure to use the ones relative to BLOCKS and ENTITIES). The latter method will place the FreeCAD objects after the objects defined in the template, which might be more logical.<br />
<br />
==A3 templates ==<br />
<br />
=== A3 Classic: ===<br />
[[Image:A3_Classic.svg|800px]]<br />
<br />
=== A3 Clean: ===<br />
[[Image:A3_Clean.svg|800px]]<br />
<br />
=== A3 Modern: ===<br />
[[Image:A3_Modern.svg|800px]]<br />
<br />
=== A3 Showcase: ===<br />
[[Image:A3_Showcase.svg|800px]]<br />
<br />
=== A3 Landscape english: ===<br />
[[File:A3_Landscape_english.svg|800px]]<br />
<br />
==A4 Templates ==<br />
<br />
=== A4 Landscape english: ===<br />
<br />
[[File:A4_Landscape_english.svg|800px]]<br />
<br />
=== A4 Portrait 1 english:===<br />
<br />
[[File:A4_Portrait_1_english.svg|400px]]<br />
<br />
==US Letter Templates ==<br />
<br />
=== US Letter landscape: ===<br />
<br />
[[File:US_Letter_landscape.svg|800px]]<br />
<br />
<br />
=== US Letter portrait: ===<br />
<br />
[[File:US_Letter_portrait.svg|400px]]<br />
<br />
=== US Letter ds Landscape: ===<br />
<br />
[[File:US_Letter_ds_Landscape.svg|800px]]<br />
<br />
=== US Legal ds Landscape: ===<br />
<br />
[[File:US_Legal_ds_Landscape.svg|800px]]<br />
<br />
=== US Ledger ds Landscape: ===<br />
<br />
[[File:US_Ledger_ds_Landscape.svg|800px]]<br />
<br />
==Other standards available==<br />
<br />
* [[ANSI_templates|ANSI templates]]: according to American National Standards Institute [http://en.wikipedia.org/wiki/American_National_Standards_Institute ANSI] standard<br />
* [[Arch_templates|Arch templates]]: according to American National Standards Institute [http://en.wikipedia.org/wiki/American_National_Standards_Institute Arch] standard <br />
* [[Misc_templates|Misc templates]]: mixed templates<br />
<br />
<br />
[[Category:Documentation]]<br />
<br />
<languages/></div>Bravikovhttps://wiki.freecad.org/index.php?title=Translations:Drawing_templates/1/ru&diff=194604Translations:Drawing templates/1/ru2016-07-31T09:31:18Z<p>Bravikov: </p>
<hr />
<div>Создавать шаблоны для модуля чертежей (Drawing) легко и приятно. Смотрите также [[Drawing_Template_HowTo|руководство по созданию шаблонов чертежей]]. Шаблон — это файл в формате SVG, который можно создать в любой программе способной экспортировать SVG, например [http://www.inkscape.org Inkscape]. Необходимо соблюдать только два правила:<br />
* 1 пиксель = 1 миллиметру.<br />
* Где-нибудь в SVG-код, там где будет размещен чертеж, требуется вставить (например, в конец файла перед тегом </svg>) следующую строку:</div>Bravikovhttps://wiki.freecad.org/index.php?title=Drawing_templates&diff=194603Drawing templates2016-07-31T09:27:40Z<p>Bravikov: added angle bracket at the tag</p>
<hr />
<div><translate><br />
<br />
== SVG templates creation == <!--T:36--><br />
<br />
<!--T:1--><br />
Creating templates for the Drawing module is very easy. See also the tutorial [[Drawing_Template_HowTo]]. Templates 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:<br />
* One pixel = one millimeter<br />
* 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:<br />
</translate><br />
<syntaxhighlight><br />
<!-- DrawingContent --><br />
</syntaxhighlight><br />
<translate><br />
<!--T:22--><br />
In addition to these two rules, as of FreeCAD 0.14, Revision 2995, 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.<br />
<br />
<!--T:23--><br />
To define the Border, the following line must appear before the <metadata> tag in the svg file.<br />
</translate><br />
<syntaxhighlight><br />
<!-- Working space X1 Y1 X2 Y2 --><br />
</syntaxhighlight><br />
<translate><br />
<!--T:24--><br />
Where X1, Y1, X2, Y2 are defined as:<br />
* X1 is the X axis distance from the left edge of the page to the left side of the Border.<br />
* Y1 is the Y axis distance from the top edge of the page the the top of the Border.<br />
* X2 is the X axis distance from the left edge of the page to the right side of the Border.<br />
* Y2 is the Y axis distance from the top edge of the page the the bottom of the Border.<br />
</translate><br />
[[File:XY_Working_v2.svg]]<br />
<br />
<translate><br />
<!--T:25--><br />
To define the Title block the following line must be inserted before the <metadata tag and after the Working space tag.<br />
</translate><br />
<syntaxhighlight><br />
<!-- Title block X1a Y1a X2a Y2a --><br />
</syntaxhighlight><br />
<translate><br />
<!--T:26--><br />
Where X1a, Y1a, X2a, Y2a are defined as:<br />
* X1a is the X axis distance from the left edge of the page to the left side of the Title block<br />
* Y1a is the Y axis distance from the top edge of the page the the top of the Title block<br />
* X2a is the X Axis distance from the left edge of the page to the right side of the Title block<br />
* Y2a is the Y axis distance from the top edge of the page the the bottom of the Title block<br />
* X1a <= X1 or X2a >= X2<br />
* Y1a <= Y1 or Y2a >= Y2<br />
</translate><br />
[[File:XY_Title_v2.svg]]<br />
<br />
<translate><br />
<!--T:27--><br />
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:<br />
</translate><br />
<syntaxhighlight><br />
<!-- Working space X1 Y1 X2 Y2 --><br />
<!-- Title block X1a Y1a X2a Y2a --><br />
</syntaxhighlight><br />
<br />
<translate><br />
<!--T:34--><br />
In order to enable up to scale printing, the real word size has to be given in the width and height attributes of the SVG-Tag. The size of the document in user units, (px), has to be given in the viewBox attribute.<br />
<br />
<!--T:35--><br />
The following is to be formatted like the example below where:<br />
* xxx = pixel width<br />
* yyy = pixel height<br />
</translate><br />
<syntaxhighlight><br />
width="xxxmm"<br />
height="yyymm"<br />
viewBox="0 0 xxx yyy"<br />
</syntaxhighlight><br />
<translate><br />
<br />
<!--T:2--><br />
* Several custom attributes can be placed in templates. The list of currently supported attributes is available on the [[Svg Namespace]] page.<br />
<br />
== DXF templates == <!--T:37--><br />
<br />
<!--T:38--><br />
Since version 0.15, FreeCAD can reliably export a [[Drawing Module|Drawing]] page to the DXF format. This system also uses templates. If a dxf file with the same name is found in the same folder as the SVG template used for a page, it will be used for export. If not, a default empty template is created on the fly.<br />
<br />
<!--T:39--><br />
Consequently, if you create your own SVG templates, and wish to be able to export the Drawing pages that you create with it to DXF, you just need to create a corresponding DXF template, and save it with the same name in the same folder.<br />
<br />
<!--T:40--><br />
DXF templates can be created with any application that produces DXF files, such as LibreCAD. You then need to edit them with a text editor, and add two additional lines, one at the beginning or end of the BLOCKS section, and another at the beginning or end of the ENTITIES section, which are where FreeCAD will add its own blocks and entities.<br />
<br />
<!--T:41--><br />
A very simple template looks like this:<br />
<br />
<!--T:42--><br />
999<br />
FreeCAD DXF exporter v0.15<br />
0<br />
SECTION<br />
2<br />
HEADER<br />
9<br />
$ACADVER<br />
1<br />
AC1009<br />
0<br />
ENDSEC<br />
0<br />
SECTION<br />
2<br />
BLOCKS<br />
$blocks<br />
0<br />
ENDSEC<br />
0<br />
SECTION<br />
2<br />
ENTITIES<br />
$entities<br />
0<br />
ENDSEC<br />
0<br />
EOF<br />
<br />
<!--T:43--><br />
The above template doesn't contain any entity. If you create your DXF file with a CAD application, there will likely be much more content inside the HEADER, BLOCKS and ENTITIES sections.<br />
<br />
<!--T:44--><br />
The two lines that FreeCAD will be looking for are "$blocks" and "$entities". They must exist in the template, and they must be placed on their own line. You can choose to place them right after the BLOCKS or ENTITIES line, which is easier (just use the "search" function of your text editor to find them), or at the end, just before the "0 ENDSEC" lines (beware that there is one for each SECTION, make sure to use the ones relative to BLOCKS and ENTITIES). The latter method will place the FreeCAD objects after the objects defined in the template, which might be more logical.<br />
<br />
==A3 templates == <!--T:3--><br />
<br />
=== A3 Classic: === <!--T:4--><br />
[[Image:A3_Classic.svg|800px]]<br />
<br />
=== A3 Clean: === <!--T:5--><br />
[[Image:A3_Clean.svg|800px]]<br />
<br />
=== A3 Modern: === <!--T:6--><br />
[[Image:A3_Modern.svg|800px]]<br />
<br />
=== A3 Showcase: === <!--T:7--><br />
[[Image:A3_Showcase.svg|800px]]<br />
<br />
=== A3 Landscape english: === <!--T:8--><br />
[[File:A3_Landscape_english.svg|800px]]<br />
<br />
==A4 Templates == <!--T:9--><br />
<br />
=== A4 Landscape english: === <!--T:10--><br />
<br />
<!--T:11--><br />
[[File:A4_Landscape_english.svg|800px]]<br />
<br />
=== A4 Portrait 1 english:=== <!--T:12--><br />
<br />
<!--T:13--><br />
[[File:A4_Portrait_1_english.svg|400px]]<br />
<br />
==US Letter Templates == <!--T:14--><br />
<br />
=== US Letter landscape: === <!--T:15--><br />
<br />
<!--T:16--><br />
[[File:US_Letter_landscape.svg|800px]]<br />
<br />
<br />
=== US Letter portrait: === <!--T:17--><br />
<br />
<!--T:18--><br />
[[File:US_Letter_portrait.svg|400px]]<br />
<br />
=== US Letter ds Landscape: === <!--T:28--><br />
<br />
<!--T:29--><br />
[[File:US_Letter_ds_Landscape.svg|800px]]<br />
<br />
=== US Legal ds Landscape: === <!--T:30--><br />
<br />
<!--T:31--><br />
[[File:US_Legal_ds_Landscape.svg|800px]]<br />
<br />
=== US Ledger ds Landscape: === <!--T:32--><br />
<br />
<!--T:33--><br />
[[File:US_Ledger_ds_Landscape.svg|800px]]<br />
<br />
==Other standards available== <!--T:19--><br />
<br />
<!--T:20--><br />
* [[ANSI_templates|ANSI templates]]: according to American National Standards Institute [http://en.wikipedia.org/wiki/American_National_Standards_Institute ANSI] standard<br />
* [[Arch_templates|Arch templates]]: according to American National Standards Institute [http://en.wikipedia.org/wiki/American_National_Standards_Institute Arch] standard <br />
* [[Misc_templates|Misc templates]]: mixed templates<br />
<br />
<br />
<!--T:21--><br />
[[Category:Documentation]]<br />
<br />
</translate><br />
<languages/></div>Bravikovhttps://wiki.freecad.org/index.php?title=Drawing_templates/ru&diff=194602Drawing templates/ru2016-07-31T09:17:44Z<p>Bravikov: </p>
<hr />
<div><br />
== Создание SVG-шаблонов ==<br />
<br />
Создавать шаблоны для модуля чертежей (Drawing) легко и приятно. Смотрите также [[Drawing_Template_HowTo|руководство по созданию шаблонов чертежей]]. Шаблон — это файл в формате SVG, который можно создать в любой программе способной экспортировать SVG, например [http://www.inkscape.org Inkscape]. Необходимо соблюдать только два правила:<br />
* 1 пиксель = 1 миллиметру.<br />
* Где-нибудь в SVG-код, там где будет размещаться содержимое чертежа, требуется вставить (например, в конец файла перед тегом </svg>) следующую строку:<br />
<syntaxhighlight><br />
<!-- DrawingContent --><br />
</syntaxhighlight><br />
In addition to these two rules, as of FreeCAD 0.14, Revision 2995, 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.<br />
<br />
To define the Border, the following line must appear before the <metadata tag in the svg file.<br />
<syntaxhighlight><br />
<!-- Working space X1 Y1 X2 Y2 --><br />
</syntaxhighlight><br />
Where X1, Y1, X2, Y2 are defined as:<br />
* X1 is the X axis distance from the left edge of the page to the left side of the Border.<br />
* Y1 is the Y axis distance from the top edge of the page the the top of the Border.<br />
* X2 is the X axis distance from the left edge of the page to the right side of the Border.<br />
* Y2 is the Y axis distance from the top edge of the page the the bottom of the Border.<br />
[[File:XY_Working_v2.svg]]<br />
<br />
To define the Title block the following line must be inserted before the <metadata tag and after the Working space tag.<br />
<syntaxhighlight><br />
<!-- Title block X1a Y1a X2a Y2a --><br />
</syntaxhighlight><br />
Where X1a, Y1a, X2a, Y2a are defined as:<br />
* X1a is the X axis distance from the left edge of the page to the left side of the Title block<br />
* Y1a is the Y axis distance from the top edge of the page the the top of the Title block<br />
* X2a is the X Axis distance from the left edge of the page to the right side of the Title block<br />
* Y2a is the Y axis distance from the top edge of the page the the bottom of the Title block<br />
* X1a <= X1 or X2a >= X2<br />
* Y1a <= Y1 or Y2a >= Y2<br />
[[File:XY_Title_v2.svg]]<br />
<br />
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:<br />
<syntaxhighlight><br />
<!-- Working space X1 Y1 X2 Y2 --><br />
<!-- Title block X1a Y1a X2a Y2a --><br />
</syntaxhighlight><br />
<br />
In order to enable up to scale printing, the real word size has to be given in the width and height attributes of the SVG-Tag. The size of the document in user units, (px), has to be given in the viewBox attribute.<br />
<br />
The following is to be formatted like the example below where:<br />
* xxx = pixel width<br />
* yyy = pixel height<br />
<syntaxhighlight><br />
width="xxxmm"<br />
height="yyymm"<br />
viewBox="0 0 xxx yyy"<br />
</syntaxhighlight><br />
<br />
* Several custom attributes can be placed in templates. The list of currently supported attributes is available on the [[Svg Namespace]] page.<br />
<br />
== DXF templates ==<br />
<br />
Since version 0.15, FreeCAD can reliably export a [[Drawing Module|Drawing]] page to the DXF format. This system also uses templates. If a dxf file with the same name is found in the same folder as the SVG template used for a page, it will be used for export. If not, a default empty template is created on the fly.<br />
<br />
Consequently, if you create your own SVG templates, and wish to be able to export the Drawing pages that you create with it to DXF, you just need to create a corresponding DXF template, and save it with the same name in the same folder.<br />
<br />
DXF templates can be created with any application that produces DXF files, such as LibreCAD. You then need to edit them with a text editor, and add two additional lines, one at the beginning or end of the BLOCKS section, and another at the beginning or end of the ENTITIES section, which are where FreeCAD will add its own blocks and entities.<br />
<br />
A very simple template looks like this:<br />
<br />
999<br />
FreeCAD DXF exporter v0.15<br />
0<br />
SECTION<br />
2<br />
HEADER<br />
9<br />
$ACADVER<br />
1<br />
AC1009<br />
0<br />
ENDSEC<br />
0<br />
SECTION<br />
2<br />
BLOCKS<br />
$blocks<br />
0<br />
ENDSEC<br />
0<br />
SECTION<br />
2<br />
ENTITIES<br />
$entities<br />
0<br />
ENDSEC<br />
0<br />
EOF<br />
<br />
The above template doesn't contain any entity. If you create your DXF file with a CAD application, there will likely be much more content inside the HEADER, BLOCKS and ENTITIES sections.<br />
<br />
The two lines that FreeCAD will be looking for are "$blocks" and "$entities". They must exist in the template, and they must be placed on their own line. You can choose to place them right after the BLOCKS or ENTITIES line, which is easier (just use the "search" function of your text editor to find them), or at the end, just before the "0 ENDSEC" lines (beware that there is one for each SECTION, make sure to use the ones relative to BLOCKS and ENTITIES). The latter method will place the FreeCAD objects after the objects defined in the template, which might be more logical.<br />
<br />
==A3 templates ==<br />
<br />
=== A3 Classic: ===<br />
[[Image:A3_Classic.svg|800px]]<br />
<br />
=== A3 Clean: ===<br />
[[Image:A3_Clean.svg|800px]]<br />
<br />
=== A3 Modern: ===<br />
[[Image:A3_Modern.svg|800px]]<br />
<br />
=== A3 Showcase: ===<br />
[[Image:A3_Showcase.svg|800px]]<br />
<br />
=== A3 Landscape english: ===<br />
[[File:A3_Landscape_english.svg|800px]]<br />
<br />
==A4 Templates ==<br />
<br />
=== A4 Landscape english: ===<br />
<br />
[[File:A4_Landscape_english.svg|800px]]<br />
<br />
=== A4 Portrait 1 english:===<br />
<br />
[[File:A4_Portrait_1_english.svg|400px]]<br />
<br />
==US Letter Templates ==<br />
<br />
=== US Letter landscape: ===<br />
<br />
[[File:US_Letter_landscape.svg|800px]]<br />
<br />
<br />
=== US Letter portrait: ===<br />
<br />
[[File:US_Letter_portrait.svg|400px]]<br />
<br />
=== US Letter ds Landscape: ===<br />
<br />
[[File:US_Letter_ds_Landscape.svg|800px]]<br />
<br />
=== US Legal ds Landscape: ===<br />
<br />
[[File:US_Legal_ds_Landscape.svg|800px]]<br />
<br />
=== US Ledger ds Landscape: ===<br />
<br />
[[File:US_Ledger_ds_Landscape.svg|800px]]<br />
<br />
==Other standards available==<br />
<br />
* [[ANSI_templates|ANSI templates]]: according to American National Standards Institute [http://en.wikipedia.org/wiki/American_National_Standards_Institute ANSI] standard<br />
* [[Arch_templates|Arch templates]]: according to American National Standards Institute [http://en.wikipedia.org/wiki/American_National_Standards_Institute Arch] standard <br />
* [[Misc_templates|Misc templates]]: mixed templates<br />
<br />
<br />
[[Category:Documentation]]<br />
<br />
<languages/></div>Bravikovhttps://wiki.freecad.org/index.php?title=Translations:Drawing_templates/1/ru&diff=194601Translations:Drawing templates/1/ru2016-07-31T09:17:43Z<p>Bravikov: </p>
<hr />
<div>Создавать шаблоны для модуля чертежей (Drawing) легко и приятно. Смотрите также [[Drawing_Template_HowTo|руководство по созданию шаблонов чертежей]]. Шаблон — это файл в формате SVG, который можно создать в любой программе способной экспортировать SVG, например [http://www.inkscape.org Inkscape]. Необходимо соблюдать только два правила:<br />
* 1 пиксель = 1 миллиметру.<br />
* Где-нибудь в SVG-код, там где будет размещаться содержимое чертежа, требуется вставить (например, в конец файла перед тегом </svg>) следующую строку:</div>Bravikovhttps://wiki.freecad.org/index.php?title=Drawing_templates/ru&diff=194600Drawing templates/ru2016-07-31T09:16:54Z<p>Bravikov: </p>
<hr />
<div><br />
== Создание SVG-шаблонов ==<br />
<br />
Создавать шаблоны для модуля чертежей (Drawing) легко и приятно. Смотрите также [[Drawing_Template_HowTo|руководство по созданию шаблонов чертежей]]. Шаблон — это файл в формате SVG, который можно создать в любой программе способной экспортировать SVG, например [http://www.inkscape.org Inkscape]. Нужно следовать только двум правилам:<br />
* 1 пиксель = 1 миллиметру.<br />
* Где-нибудь в SVG-код, там где будет размещаться содержимое чертежа, требуется вставить (например, в конец файла перед тегом </svg>) следующую строку:<br />
<syntaxhighlight><br />
<!-- DrawingContent --><br />
</syntaxhighlight><br />
In addition to these two rules, as of FreeCAD 0.14, Revision 2995, 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.<br />
<br />
To define the Border, the following line must appear before the <metadata tag in the svg file.<br />
<syntaxhighlight><br />
<!-- Working space X1 Y1 X2 Y2 --><br />
</syntaxhighlight><br />
Where X1, Y1, X2, Y2 are defined as:<br />
* X1 is the X axis distance from the left edge of the page to the left side of the Border.<br />
* Y1 is the Y axis distance from the top edge of the page the the top of the Border.<br />
* X2 is the X axis distance from the left edge of the page to the right side of the Border.<br />
* Y2 is the Y axis distance from the top edge of the page the the bottom of the Border.<br />
[[File:XY_Working_v2.svg]]<br />
<br />
To define the Title block the following line must be inserted before the <metadata tag and after the Working space tag.<br />
<syntaxhighlight><br />
<!-- Title block X1a Y1a X2a Y2a --><br />
</syntaxhighlight><br />
Where X1a, Y1a, X2a, Y2a are defined as:<br />
* X1a is the X axis distance from the left edge of the page to the left side of the Title block<br />
* Y1a is the Y axis distance from the top edge of the page the the top of the Title block<br />
* X2a is the X Axis distance from the left edge of the page to the right side of the Title block<br />
* Y2a is the Y axis distance from the top edge of the page the the bottom of the Title block<br />
* X1a <= X1 or X2a >= X2<br />
* Y1a <= Y1 or Y2a >= Y2<br />
[[File:XY_Title_v2.svg]]<br />
<br />
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:<br />
<syntaxhighlight><br />
<!-- Working space X1 Y1 X2 Y2 --><br />
<!-- Title block X1a Y1a X2a Y2a --><br />
</syntaxhighlight><br />
<br />
In order to enable up to scale printing, the real word size has to be given in the width and height attributes of the SVG-Tag. The size of the document in user units, (px), has to be given in the viewBox attribute.<br />
<br />
The following is to be formatted like the example below where:<br />
* xxx = pixel width<br />
* yyy = pixel height<br />
<syntaxhighlight><br />
width="xxxmm"<br />
height="yyymm"<br />
viewBox="0 0 xxx yyy"<br />
</syntaxhighlight><br />
<br />
* Several custom attributes can be placed in templates. The list of currently supported attributes is available on the [[Svg Namespace]] page.<br />
<br />
== DXF templates ==<br />
<br />
Since version 0.15, FreeCAD can reliably export a [[Drawing Module|Drawing]] page to the DXF format. This system also uses templates. If a dxf file with the same name is found in the same folder as the SVG template used for a page, it will be used for export. If not, a default empty template is created on the fly.<br />
<br />
Consequently, if you create your own SVG templates, and wish to be able to export the Drawing pages that you create with it to DXF, you just need to create a corresponding DXF template, and save it with the same name in the same folder.<br />
<br />
DXF templates can be created with any application that produces DXF files, such as LibreCAD. You then need to edit them with a text editor, and add two additional lines, one at the beginning or end of the BLOCKS section, and another at the beginning or end of the ENTITIES section, which are where FreeCAD will add its own blocks and entities.<br />
<br />
A very simple template looks like this:<br />
<br />
999<br />
FreeCAD DXF exporter v0.15<br />
0<br />
SECTION<br />
2<br />
HEADER<br />
9<br />
$ACADVER<br />
1<br />
AC1009<br />
0<br />
ENDSEC<br />
0<br />
SECTION<br />
2<br />
BLOCKS<br />
$blocks<br />
0<br />
ENDSEC<br />
0<br />
SECTION<br />
2<br />
ENTITIES<br />
$entities<br />
0<br />
ENDSEC<br />
0<br />
EOF<br />
<br />
The above template doesn't contain any entity. If you create your DXF file with a CAD application, there will likely be much more content inside the HEADER, BLOCKS and ENTITIES sections.<br />
<br />
The two lines that FreeCAD will be looking for are "$blocks" and "$entities". They must exist in the template, and they must be placed on their own line. You can choose to place them right after the BLOCKS or ENTITIES line, which is easier (just use the "search" function of your text editor to find them), or at the end, just before the "0 ENDSEC" lines (beware that there is one for each SECTION, make sure to use the ones relative to BLOCKS and ENTITIES). The latter method will place the FreeCAD objects after the objects defined in the template, which might be more logical.<br />
<br />
==A3 templates ==<br />
<br />
=== A3 Classic: ===<br />
[[Image:A3_Classic.svg|800px]]<br />
<br />
=== A3 Clean: ===<br />
[[Image:A3_Clean.svg|800px]]<br />
<br />
=== A3 Modern: ===<br />
[[Image:A3_Modern.svg|800px]]<br />
<br />
=== A3 Showcase: ===<br />
[[Image:A3_Showcase.svg|800px]]<br />
<br />
=== A3 Landscape english: ===<br />
[[File:A3_Landscape_english.svg|800px]]<br />
<br />
==A4 Templates ==<br />
<br />
=== A4 Landscape english: ===<br />
<br />
[[File:A4_Landscape_english.svg|800px]]<br />
<br />
=== A4 Portrait 1 english:===<br />
<br />
[[File:A4_Portrait_1_english.svg|400px]]<br />
<br />
==US Letter Templates ==<br />
<br />
=== US Letter landscape: ===<br />
<br />
[[File:US_Letter_landscape.svg|800px]]<br />
<br />
<br />
=== US Letter portrait: ===<br />
<br />
[[File:US_Letter_portrait.svg|400px]]<br />
<br />
=== US Letter ds Landscape: ===<br />
<br />
[[File:US_Letter_ds_Landscape.svg|800px]]<br />
<br />
=== US Legal ds Landscape: ===<br />
<br />
[[File:US_Legal_ds_Landscape.svg|800px]]<br />
<br />
=== US Ledger ds Landscape: ===<br />
<br />
[[File:US_Ledger_ds_Landscape.svg|800px]]<br />
<br />
==Other standards available==<br />
<br />
* [[ANSI_templates|ANSI templates]]: according to American National Standards Institute [http://en.wikipedia.org/wiki/American_National_Standards_Institute ANSI] standard<br />
* [[Arch_templates|Arch templates]]: according to American National Standards Institute [http://en.wikipedia.org/wiki/American_National_Standards_Institute Arch] standard <br />
* [[Misc_templates|Misc templates]]: mixed templates<br />
<br />
<br />
[[Category:Documentation]]<br />
<br />
<languages/></div>Bravikovhttps://wiki.freecad.org/index.php?title=Translations:Drawing_templates/1/ru&diff=194599Translations:Drawing templates/1/ru2016-07-31T09:16:54Z<p>Bravikov: </p>
<hr />
<div>Создавать шаблоны для модуля чертежей (Drawing) легко и приятно. Смотрите также [[Drawing_Template_HowTo|руководство по созданию шаблонов чертежей]]. Шаблон — это файл в формате SVG, который можно создать в любой программе способной экспортировать SVG, например [http://www.inkscape.org Inkscape]. Нужно следовать только двум правилам:<br />
* 1 пиксель = 1 миллиметру.<br />
* Где-нибудь в SVG-код, там где будет размещаться содержимое чертежа, требуется вставить (например, в конец файла перед тегом </svg>) следующую строку:</div>Bravikovhttps://wiki.freecad.org/index.php?title=Drawing_templates/ru&diff=194598Drawing templates/ru2016-07-31T09:14:24Z<p>Bravikov: </p>
<hr />
<div><br />
== Создание SVG-шаблонов ==<br />
<br />
Создавать шаблоны для модуля чертежей (Drawing) легко и приятно. Смотрите также [[Drawing_Template_HowTo|руководство по созданию шаблонов чертежей]]. Шаблон - это файл в формате SVG, который можно создать в любой программе способной экспортировать SVG, например [http://www.inkscape.org Inkscape]. Нужно следовать только двум правилам:<br />
* 1 пиксель = 1 миллиметру.<br />
* Где-нибудь в SVG-код требуется вставить (например, в конец файла перед тегом </svg>) следующую строку:<br />
<syntaxhighlight><br />
<!-- DrawingContent --><br />
</syntaxhighlight><br />
In addition to these two rules, as of FreeCAD 0.14, Revision 2995, 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.<br />
<br />
To define the Border, the following line must appear before the <metadata tag in the svg file.<br />
<syntaxhighlight><br />
<!-- Working space X1 Y1 X2 Y2 --><br />
</syntaxhighlight><br />
Where X1, Y1, X2, Y2 are defined as:<br />
* X1 is the X axis distance from the left edge of the page to the left side of the Border.<br />
* Y1 is the Y axis distance from the top edge of the page the the top of the Border.<br />
* X2 is the X axis distance from the left edge of the page to the right side of the Border.<br />
* Y2 is the Y axis distance from the top edge of the page the the bottom of the Border.<br />
[[File:XY_Working_v2.svg]]<br />
<br />
To define the Title block the following line must be inserted before the <metadata tag and after the Working space tag.<br />
<syntaxhighlight><br />
<!-- Title block X1a Y1a X2a Y2a --><br />
</syntaxhighlight><br />
Where X1a, Y1a, X2a, Y2a are defined as:<br />
* X1a is the X axis distance from the left edge of the page to the left side of the Title block<br />
* Y1a is the Y axis distance from the top edge of the page the the top of the Title block<br />
* X2a is the X Axis distance from the left edge of the page to the right side of the Title block<br />
* Y2a is the Y axis distance from the top edge of the page the the bottom of the Title block<br />
* X1a <= X1 or X2a >= X2<br />
* Y1a <= Y1 or Y2a >= Y2<br />
[[File:XY_Title_v2.svg]]<br />
<br />
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:<br />
<syntaxhighlight><br />
<!-- Working space X1 Y1 X2 Y2 --><br />
<!-- Title block X1a Y1a X2a Y2a --><br />
</syntaxhighlight><br />
<br />
In order to enable up to scale printing, the real word size has to be given in the width and height attributes of the SVG-Tag. The size of the document in user units, (px), has to be given in the viewBox attribute.<br />
<br />
The following is to be formatted like the example below where:<br />
* xxx = pixel width<br />
* yyy = pixel height<br />
<syntaxhighlight><br />
width="xxxmm"<br />
height="yyymm"<br />
viewBox="0 0 xxx yyy"<br />
</syntaxhighlight><br />
<br />
* Several custom attributes can be placed in templates. The list of currently supported attributes is available on the [[Svg Namespace]] page.<br />
<br />
== DXF templates ==<br />
<br />
Since version 0.15, FreeCAD can reliably export a [[Drawing Module|Drawing]] page to the DXF format. This system also uses templates. If a dxf file with the same name is found in the same folder as the SVG template used for a page, it will be used for export. If not, a default empty template is created on the fly.<br />
<br />
Consequently, if you create your own SVG templates, and wish to be able to export the Drawing pages that you create with it to DXF, you just need to create a corresponding DXF template, and save it with the same name in the same folder.<br />
<br />
DXF templates can be created with any application that produces DXF files, such as LibreCAD. You then need to edit them with a text editor, and add two additional lines, one at the beginning or end of the BLOCKS section, and another at the beginning or end of the ENTITIES section, which are where FreeCAD will add its own blocks and entities.<br />
<br />
A very simple template looks like this:<br />
<br />
999<br />
FreeCAD DXF exporter v0.15<br />
0<br />
SECTION<br />
2<br />
HEADER<br />
9<br />
$ACADVER<br />
1<br />
AC1009<br />
0<br />
ENDSEC<br />
0<br />
SECTION<br />
2<br />
BLOCKS<br />
$blocks<br />
0<br />
ENDSEC<br />
0<br />
SECTION<br />
2<br />
ENTITIES<br />
$entities<br />
0<br />
ENDSEC<br />
0<br />
EOF<br />
<br />
The above template doesn't contain any entity. If you create your DXF file with a CAD application, there will likely be much more content inside the HEADER, BLOCKS and ENTITIES sections.<br />
<br />
The two lines that FreeCAD will be looking for are "$blocks" and "$entities". They must exist in the template, and they must be placed on their own line. You can choose to place them right after the BLOCKS or ENTITIES line, which is easier (just use the "search" function of your text editor to find them), or at the end, just before the "0 ENDSEC" lines (beware that there is one for each SECTION, make sure to use the ones relative to BLOCKS and ENTITIES). The latter method will place the FreeCAD objects after the objects defined in the template, which might be more logical.<br />
<br />
==A3 templates ==<br />
<br />
=== A3 Classic: ===<br />
[[Image:A3_Classic.svg|800px]]<br />
<br />
=== A3 Clean: ===<br />
[[Image:A3_Clean.svg|800px]]<br />
<br />
=== A3 Modern: ===<br />
[[Image:A3_Modern.svg|800px]]<br />
<br />
=== A3 Showcase: ===<br />
[[Image:A3_Showcase.svg|800px]]<br />
<br />
=== A3 Landscape english: ===<br />
[[File:A3_Landscape_english.svg|800px]]<br />
<br />
==A4 Templates ==<br />
<br />
=== A4 Landscape english: ===<br />
<br />
[[File:A4_Landscape_english.svg|800px]]<br />
<br />
=== A4 Portrait 1 english:===<br />
<br />
[[File:A4_Portrait_1_english.svg|400px]]<br />
<br />
==US Letter Templates ==<br />
<br />
=== US Letter landscape: ===<br />
<br />
[[File:US_Letter_landscape.svg|800px]]<br />
<br />
<br />
=== US Letter portrait: ===<br />
<br />
[[File:US_Letter_portrait.svg|400px]]<br />
<br />
=== US Letter ds Landscape: ===<br />
<br />
[[File:US_Letter_ds_Landscape.svg|800px]]<br />
<br />
=== US Legal ds Landscape: ===<br />
<br />
[[File:US_Legal_ds_Landscape.svg|800px]]<br />
<br />
=== US Ledger ds Landscape: ===<br />
<br />
[[File:US_Ledger_ds_Landscape.svg|800px]]<br />
<br />
==Other standards available==<br />
<br />
* [[ANSI_templates|ANSI templates]]: according to American National Standards Institute [http://en.wikipedia.org/wiki/American_National_Standards_Institute ANSI] standard<br />
* [[Arch_templates|Arch templates]]: according to American National Standards Institute [http://en.wikipedia.org/wiki/American_National_Standards_Institute Arch] standard <br />
* [[Misc_templates|Misc templates]]: mixed templates<br />
<br />
<br />
[[Category:Documentation]]<br />
<br />
<languages/></div>Bravikovhttps://wiki.freecad.org/index.php?title=Translations:Drawing_templates/1/ru&diff=194597Translations:Drawing templates/1/ru2016-07-31T09:14:23Z<p>Bravikov: </p>
<hr />
<div>Создавать шаблоны для модуля чертежей (Drawing) легко и приятно. Смотрите также [[Drawing_Template_HowTo|руководство по созданию шаблонов чертежей]]. Шаблон - это файл в формате SVG, который можно создать в любой программе способной экспортировать SVG, например [http://www.inkscape.org Inkscape]. Нужно следовать только двум правилам:<br />
* 1 пиксель = 1 миллиметру.<br />
* Где-нибудь в SVG-код требуется вставить (например, в конец файла перед тегом </svg>) следующую строку:</div>Bravikovhttps://wiki.freecad.org/index.php?title=Drawing_templates/ru&diff=194596Drawing templates/ru2016-07-31T09:13:35Z<p>Bravikov: </p>
<hr />
<div><br />
== Создание SVG-шаблонов ==<br />
<br />
Создавать шаблоны для модуля чертежей (Drawing) легко и приятно. Смотрите также [[Drawing_Template_HowTo|руководство по созданию шаблонов чертежей]]. Шаблон -- это файл в формате SVG, который можно создать в любой программе способной экспортировать SVG, например [http://www.inkscape.org Inkscape]. Нужно следовать только двум правилам:<br />
* 1 пиксель = 1 миллиметру.<br />
* Где-нибудь в SVG-код требуется вставить (например, в конце файле перед тегом </svg>) следующую строку:<br />
<syntaxhighlight><br />
<!-- DrawingContent --><br />
</syntaxhighlight><br />
In addition to these two rules, as of FreeCAD 0.14, Revision 2995, 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.<br />
<br />
To define the Border, the following line must appear before the <metadata tag in the svg file.<br />
<syntaxhighlight><br />
<!-- Working space X1 Y1 X2 Y2 --><br />
</syntaxhighlight><br />
Where X1, Y1, X2, Y2 are defined as:<br />
* X1 is the X axis distance from the left edge of the page to the left side of the Border.<br />
* Y1 is the Y axis distance from the top edge of the page the the top of the Border.<br />
* X2 is the X axis distance from the left edge of the page to the right side of the Border.<br />
* Y2 is the Y axis distance from the top edge of the page the the bottom of the Border.<br />
[[File:XY_Working_v2.svg]]<br />
<br />
To define the Title block the following line must be inserted before the <metadata tag and after the Working space tag.<br />
<syntaxhighlight><br />
<!-- Title block X1a Y1a X2a Y2a --><br />
</syntaxhighlight><br />
Where X1a, Y1a, X2a, Y2a are defined as:<br />
* X1a is the X axis distance from the left edge of the page to the left side of the Title block<br />
* Y1a is the Y axis distance from the top edge of the page the the top of the Title block<br />
* X2a is the X Axis distance from the left edge of the page to the right side of the Title block<br />
* Y2a is the Y axis distance from the top edge of the page the the bottom of the Title block<br />
* X1a <= X1 or X2a >= X2<br />
* Y1a <= Y1 or Y2a >= Y2<br />
[[File:XY_Title_v2.svg]]<br />
<br />
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:<br />
<syntaxhighlight><br />
<!-- Working space X1 Y1 X2 Y2 --><br />
<!-- Title block X1a Y1a X2a Y2a --><br />
</syntaxhighlight><br />
<br />
In order to enable up to scale printing, the real word size has to be given in the width and height attributes of the SVG-Tag. The size of the document in user units, (px), has to be given in the viewBox attribute.<br />
<br />
The following is to be formatted like the example below where:<br />
* xxx = pixel width<br />
* yyy = pixel height<br />
<syntaxhighlight><br />
width="xxxmm"<br />
height="yyymm"<br />
viewBox="0 0 xxx yyy"<br />
</syntaxhighlight><br />
<br />
* Several custom attributes can be placed in templates. The list of currently supported attributes is available on the [[Svg Namespace]] page.<br />
<br />
== DXF templates ==<br />
<br />
Since version 0.15, FreeCAD can reliably export a [[Drawing Module|Drawing]] page to the DXF format. This system also uses templates. If a dxf file with the same name is found in the same folder as the SVG template used for a page, it will be used for export. If not, a default empty template is created on the fly.<br />
<br />
Consequently, if you create your own SVG templates, and wish to be able to export the Drawing pages that you create with it to DXF, you just need to create a corresponding DXF template, and save it with the same name in the same folder.<br />
<br />
DXF templates can be created with any application that produces DXF files, such as LibreCAD. You then need to edit them with a text editor, and add two additional lines, one at the beginning or end of the BLOCKS section, and another at the beginning or end of the ENTITIES section, which are where FreeCAD will add its own blocks and entities.<br />
<br />
A very simple template looks like this:<br />
<br />
999<br />
FreeCAD DXF exporter v0.15<br />
0<br />
SECTION<br />
2<br />
HEADER<br />
9<br />
$ACADVER<br />
1<br />
AC1009<br />
0<br />
ENDSEC<br />
0<br />
SECTION<br />
2<br />
BLOCKS<br />
$blocks<br />
0<br />
ENDSEC<br />
0<br />
SECTION<br />
2<br />
ENTITIES<br />
$entities<br />
0<br />
ENDSEC<br />
0<br />
EOF<br />
<br />
The above template doesn't contain any entity. If you create your DXF file with a CAD application, there will likely be much more content inside the HEADER, BLOCKS and ENTITIES sections.<br />
<br />
The two lines that FreeCAD will be looking for are "$blocks" and "$entities". They must exist in the template, and they must be placed on their own line. You can choose to place them right after the BLOCKS or ENTITIES line, which is easier (just use the "search" function of your text editor to find them), or at the end, just before the "0 ENDSEC" lines (beware that there is one for each SECTION, make sure to use the ones relative to BLOCKS and ENTITIES). The latter method will place the FreeCAD objects after the objects defined in the template, which might be more logical.<br />
<br />
==A3 templates ==<br />
<br />
=== A3 Classic: ===<br />
[[Image:A3_Classic.svg|800px]]<br />
<br />
=== A3 Clean: ===<br />
[[Image:A3_Clean.svg|800px]]<br />
<br />
=== A3 Modern: ===<br />
[[Image:A3_Modern.svg|800px]]<br />
<br />
=== A3 Showcase: ===<br />
[[Image:A3_Showcase.svg|800px]]<br />
<br />
=== A3 Landscape english: ===<br />
[[File:A3_Landscape_english.svg|800px]]<br />
<br />
==A4 Templates ==<br />
<br />
=== A4 Landscape english: ===<br />
<br />
[[File:A4_Landscape_english.svg|800px]]<br />
<br />
=== A4 Portrait 1 english:===<br />
<br />
[[File:A4_Portrait_1_english.svg|400px]]<br />
<br />
==US Letter Templates ==<br />
<br />
=== US Letter landscape: ===<br />
<br />
[[File:US_Letter_landscape.svg|800px]]<br />
<br />
<br />
=== US Letter portrait: ===<br />
<br />
[[File:US_Letter_portrait.svg|400px]]<br />
<br />
=== US Letter ds Landscape: ===<br />
<br />
[[File:US_Letter_ds_Landscape.svg|800px]]<br />
<br />
=== US Legal ds Landscape: ===<br />
<br />
[[File:US_Legal_ds_Landscape.svg|800px]]<br />
<br />
=== US Ledger ds Landscape: ===<br />
<br />
[[File:US_Ledger_ds_Landscape.svg|800px]]<br />
<br />
==Other standards available==<br />
<br />
* [[ANSI_templates|ANSI templates]]: according to American National Standards Institute [http://en.wikipedia.org/wiki/American_National_Standards_Institute ANSI] standard<br />
* [[Arch_templates|Arch templates]]: according to American National Standards Institute [http://en.wikipedia.org/wiki/American_National_Standards_Institute Arch] standard <br />
* [[Misc_templates|Misc templates]]: mixed templates<br />
<br />
<br />
[[Category:Documentation]]<br />
<br />
<languages/></div>Bravikovhttps://wiki.freecad.org/index.php?title=Translations:Drawing_templates/1/ru&diff=194595Translations:Drawing templates/1/ru2016-07-31T09:13:35Z<p>Bravikov: </p>
<hr />
<div>Создавать шаблоны для модуля чертежей (Drawing) легко и приятно. Смотрите также [[Drawing_Template_HowTo|руководство по созданию шаблонов чертежей]]. Шаблон -- это файл в формате SVG, который можно создать в любой программе способной экспортировать SVG, например [http://www.inkscape.org Inkscape]. Нужно следовать только двум правилам:<br />
* 1 пиксель = 1 миллиметру.<br />
* Где-нибудь в SVG-код требуется вставить (например, в конце файле перед тегом </svg>) следующую строку:</div>Bravikovhttps://wiki.freecad.org/index.php?title=Drawing_templates/ru&diff=194594Drawing templates/ru2016-07-31T09:13:13Z<p>Bravikov: </p>
<hr />
<div><br />
== Создание SVG-шаблонов ==<br />
<br />
Создавать шаблоны для модуля чертежей (Drawing) легко и приятно. Смотрите также [[Drawing_Template_HowTo|руководство по созданию шаблонов чертежей]]. Шаблон - это файл в формате SVG, который можно создать в любой программе способной экспортировать SVG, например [http://www.inkscape.org Inkscape]. Нужно следовать только двум правилам:<br />
* 1 пиксель = 1 миллиметру.<br />
* Где-нибудь в SVG-код требуется вставить (например, в конце файле перед тегом </svg>) следующую строку:<br />
<syntaxhighlight><br />
<!-- DrawingContent --><br />
</syntaxhighlight><br />
In addition to these two rules, as of FreeCAD 0.14, Revision 2995, 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.<br />
<br />
To define the Border, the following line must appear before the <metadata tag in the svg file.<br />
<syntaxhighlight><br />
<!-- Working space X1 Y1 X2 Y2 --><br />
</syntaxhighlight><br />
Where X1, Y1, X2, Y2 are defined as:<br />
* X1 is the X axis distance from the left edge of the page to the left side of the Border.<br />
* Y1 is the Y axis distance from the top edge of the page the the top of the Border.<br />
* X2 is the X axis distance from the left edge of the page to the right side of the Border.<br />
* Y2 is the Y axis distance from the top edge of the page the the bottom of the Border.<br />
[[File:XY_Working_v2.svg]]<br />
<br />
To define the Title block the following line must be inserted before the <metadata tag and after the Working space tag.<br />
<syntaxhighlight><br />
<!-- Title block X1a Y1a X2a Y2a --><br />
</syntaxhighlight><br />
Where X1a, Y1a, X2a, Y2a are defined as:<br />
* X1a is the X axis distance from the left edge of the page to the left side of the Title block<br />
* Y1a is the Y axis distance from the top edge of the page the the top of the Title block<br />
* X2a is the X Axis distance from the left edge of the page to the right side of the Title block<br />
* Y2a is the Y axis distance from the top edge of the page the the bottom of the Title block<br />
* X1a <= X1 or X2a >= X2<br />
* Y1a <= Y1 or Y2a >= Y2<br />
[[File:XY_Title_v2.svg]]<br />
<br />
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:<br />
<syntaxhighlight><br />
<!-- Working space X1 Y1 X2 Y2 --><br />
<!-- Title block X1a Y1a X2a Y2a --><br />
</syntaxhighlight><br />
<br />
In order to enable up to scale printing, the real word size has to be given in the width and height attributes of the SVG-Tag. The size of the document in user units, (px), has to be given in the viewBox attribute.<br />
<br />
The following is to be formatted like the example below where:<br />
* xxx = pixel width<br />
* yyy = pixel height<br />
<syntaxhighlight><br />
width="xxxmm"<br />
height="yyymm"<br />
viewBox="0 0 xxx yyy"<br />
</syntaxhighlight><br />
<br />
* Several custom attributes can be placed in templates. The list of currently supported attributes is available on the [[Svg Namespace]] page.<br />
<br />
== DXF templates ==<br />
<br />
Since version 0.15, FreeCAD can reliably export a [[Drawing Module|Drawing]] page to the DXF format. This system also uses templates. If a dxf file with the same name is found in the same folder as the SVG template used for a page, it will be used for export. If not, a default empty template is created on the fly.<br />
<br />
Consequently, if you create your own SVG templates, and wish to be able to export the Drawing pages that you create with it to DXF, you just need to create a corresponding DXF template, and save it with the same name in the same folder.<br />
<br />
DXF templates can be created with any application that produces DXF files, such as LibreCAD. You then need to edit them with a text editor, and add two additional lines, one at the beginning or end of the BLOCKS section, and another at the beginning or end of the ENTITIES section, which are where FreeCAD will add its own blocks and entities.<br />
<br />
A very simple template looks like this:<br />
<br />
999<br />
FreeCAD DXF exporter v0.15<br />
0<br />
SECTION<br />
2<br />
HEADER<br />
9<br />
$ACADVER<br />
1<br />
AC1009<br />
0<br />
ENDSEC<br />
0<br />
SECTION<br />
2<br />
BLOCKS<br />
$blocks<br />
0<br />
ENDSEC<br />
0<br />
SECTION<br />
2<br />
ENTITIES<br />
$entities<br />
0<br />
ENDSEC<br />
0<br />
EOF<br />
<br />
The above template doesn't contain any entity. If you create your DXF file with a CAD application, there will likely be much more content inside the HEADER, BLOCKS and ENTITIES sections.<br />
<br />
The two lines that FreeCAD will be looking for are "$blocks" and "$entities". They must exist in the template, and they must be placed on their own line. You can choose to place them right after the BLOCKS or ENTITIES line, which is easier (just use the "search" function of your text editor to find them), or at the end, just before the "0 ENDSEC" lines (beware that there is one for each SECTION, make sure to use the ones relative to BLOCKS and ENTITIES). The latter method will place the FreeCAD objects after the objects defined in the template, which might be more logical.<br />
<br />
==A3 templates ==<br />
<br />
=== A3 Classic: ===<br />
[[Image:A3_Classic.svg|800px]]<br />
<br />
=== A3 Clean: ===<br />
[[Image:A3_Clean.svg|800px]]<br />
<br />
=== A3 Modern: ===<br />
[[Image:A3_Modern.svg|800px]]<br />
<br />
=== A3 Showcase: ===<br />
[[Image:A3_Showcase.svg|800px]]<br />
<br />
=== A3 Landscape english: ===<br />
[[File:A3_Landscape_english.svg|800px]]<br />
<br />
==A4 Templates ==<br />
<br />
=== A4 Landscape english: ===<br />
<br />
[[File:A4_Landscape_english.svg|800px]]<br />
<br />
=== A4 Portrait 1 english:===<br />
<br />
[[File:A4_Portrait_1_english.svg|400px]]<br />
<br />
==US Letter Templates ==<br />
<br />
=== US Letter landscape: ===<br />
<br />
[[File:US_Letter_landscape.svg|800px]]<br />
<br />
<br />
=== US Letter portrait: ===<br />
<br />
[[File:US_Letter_portrait.svg|400px]]<br />
<br />
=== US Letter ds Landscape: ===<br />
<br />
[[File:US_Letter_ds_Landscape.svg|800px]]<br />
<br />
=== US Legal ds Landscape: ===<br />
<br />
[[File:US_Legal_ds_Landscape.svg|800px]]<br />
<br />
=== US Ledger ds Landscape: ===<br />
<br />
[[File:US_Ledger_ds_Landscape.svg|800px]]<br />
<br />
==Other standards available==<br />
<br />
* [[ANSI_templates|ANSI templates]]: according to American National Standards Institute [http://en.wikipedia.org/wiki/American_National_Standards_Institute ANSI] standard<br />
* [[Arch_templates|Arch templates]]: according to American National Standards Institute [http://en.wikipedia.org/wiki/American_National_Standards_Institute Arch] standard <br />
* [[Misc_templates|Misc templates]]: mixed templates<br />
<br />
<br />
[[Category:Documentation]]<br />
<br />
<languages/></div>Bravikovhttps://wiki.freecad.org/index.php?title=Translations:Drawing_templates/1/ru&diff=194593Translations:Drawing templates/1/ru2016-07-31T09:13:12Z<p>Bravikov: </p>
<hr />
<div>Создавать шаблоны для модуля чертежей (Drawing) легко и приятно. Смотрите также [[Drawing_Template_HowTo|руководство по созданию шаблонов чертежей]]. Шаблон - это файл в формате SVG, который можно создать в любой программе способной экспортировать SVG, например [http://www.inkscape.org Inkscape]. Нужно следовать только двум правилам:<br />
* 1 пиксель = 1 миллиметру.<br />
* Где-нибудь в SVG-код требуется вставить (например, в конце файле перед тегом </svg>) следующую строку:</div>Bravikovhttps://wiki.freecad.org/index.php?title=Drawing_templates/ru&diff=194592Drawing templates/ru2016-07-31T09:04:24Z<p>Bravikov: Created page with "Создавать шаблоны для модуля чертежей (Drawing) легко и приятно. Смотрите также Drawing_Template_HowTo|руков..."</p>
<hr />
<div><br />
== Создание SVG-шаблонов ==<br />
<br />
Создавать шаблоны для модуля чертежей (Drawing) легко и приятно. Смотрите также [[Drawing_Template_HowTo|руководство по созданию шаблонов чертежей]].<br />
<syntaxhighlight><br />
<!-- DrawingContent --><br />
</syntaxhighlight><br />
In addition to these two rules, as of FreeCAD 0.14, Revision 2995, 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.<br />
<br />
To define the Border, the following line must appear before the <metadata tag in the svg file.<br />
<syntaxhighlight><br />
<!-- Working space X1 Y1 X2 Y2 --><br />
</syntaxhighlight><br />
Where X1, Y1, X2, Y2 are defined as:<br />
* X1 is the X axis distance from the left edge of the page to the left side of the Border.<br />
* Y1 is the Y axis distance from the top edge of the page the the top of the Border.<br />
* X2 is the X axis distance from the left edge of the page to the right side of the Border.<br />
* Y2 is the Y axis distance from the top edge of the page the the bottom of the Border.<br />
[[File:XY_Working_v2.svg]]<br />
<br />
To define the Title block the following line must be inserted before the <metadata tag and after the Working space tag.<br />
<syntaxhighlight><br />
<!-- Title block X1a Y1a X2a Y2a --><br />
</syntaxhighlight><br />
Where X1a, Y1a, X2a, Y2a are defined as:<br />
* X1a is the X axis distance from the left edge of the page to the left side of the Title block<br />
* Y1a is the Y axis distance from the top edge of the page the the top of the Title block<br />
* X2a is the X Axis distance from the left edge of the page to the right side of the Title block<br />
* Y2a is the Y axis distance from the top edge of the page the the bottom of the Title block<br />
* X1a <= X1 or X2a >= X2<br />
* Y1a <= Y1 or Y2a >= Y2<br />
[[File:XY_Title_v2.svg]]<br />
<br />
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:<br />
<syntaxhighlight><br />
<!-- Working space X1 Y1 X2 Y2 --><br />
<!-- Title block X1a Y1a X2a Y2a --><br />
</syntaxhighlight><br />
<br />
In order to enable up to scale printing, the real word size has to be given in the width and height attributes of the SVG-Tag. The size of the document in user units, (px), has to be given in the viewBox attribute.<br />
<br />
The following is to be formatted like the example below where:<br />
* xxx = pixel width<br />
* yyy = pixel height<br />
<syntaxhighlight><br />
width="xxxmm"<br />
height="yyymm"<br />
viewBox="0 0 xxx yyy"<br />
</syntaxhighlight><br />
<br />
* Several custom attributes can be placed in templates. The list of currently supported attributes is available on the [[Svg Namespace]] page.<br />
<br />
== DXF templates ==<br />
<br />
Since version 0.15, FreeCAD can reliably export a [[Drawing Module|Drawing]] page to the DXF format. This system also uses templates. If a dxf file with the same name is found in the same folder as the SVG template used for a page, it will be used for export. If not, a default empty template is created on the fly.<br />
<br />
Consequently, if you create your own SVG templates, and wish to be able to export the Drawing pages that you create with it to DXF, you just need to create a corresponding DXF template, and save it with the same name in the same folder.<br />
<br />
DXF templates can be created with any application that produces DXF files, such as LibreCAD. You then need to edit them with a text editor, and add two additional lines, one at the beginning or end of the BLOCKS section, and another at the beginning or end of the ENTITIES section, which are where FreeCAD will add its own blocks and entities.<br />
<br />
A very simple template looks like this:<br />
<br />
999<br />
FreeCAD DXF exporter v0.15<br />
0<br />
SECTION<br />
2<br />
HEADER<br />
9<br />
$ACADVER<br />
1<br />
AC1009<br />
0<br />
ENDSEC<br />
0<br />
SECTION<br />
2<br />
BLOCKS<br />
$blocks<br />
0<br />
ENDSEC<br />
0<br />
SECTION<br />
2<br />
ENTITIES<br />
$entities<br />
0<br />
ENDSEC<br />
0<br />
EOF<br />
<br />
The above template doesn't contain any entity. If you create your DXF file with a CAD application, there will likely be much more content inside the HEADER, BLOCKS and ENTITIES sections.<br />
<br />
The two lines that FreeCAD will be looking for are "$blocks" and "$entities". They must exist in the template, and they must be placed on their own line. You can choose to place them right after the BLOCKS or ENTITIES line, which is easier (just use the "search" function of your text editor to find them), or at the end, just before the "0 ENDSEC" lines (beware that there is one for each SECTION, make sure to use the ones relative to BLOCKS and ENTITIES). The latter method will place the FreeCAD objects after the objects defined in the template, which might be more logical.<br />
<br />
==A3 templates ==<br />
<br />
=== A3 Classic: ===<br />
[[Image:A3_Classic.svg|800px]]<br />
<br />
=== A3 Clean: ===<br />
[[Image:A3_Clean.svg|800px]]<br />
<br />
=== A3 Modern: ===<br />
[[Image:A3_Modern.svg|800px]]<br />
<br />
=== A3 Showcase: ===<br />
[[Image:A3_Showcase.svg|800px]]<br />
<br />
=== A3 Landscape english: ===<br />
[[File:A3_Landscape_english.svg|800px]]<br />
<br />
==A4 Templates ==<br />
<br />
=== A4 Landscape english: ===<br />
<br />
[[File:A4_Landscape_english.svg|800px]]<br />
<br />
=== A4 Portrait 1 english:===<br />
<br />
[[File:A4_Portrait_1_english.svg|400px]]<br />
<br />
==US Letter Templates ==<br />
<br />
=== US Letter landscape: ===<br />
<br />
[[File:US_Letter_landscape.svg|800px]]<br />
<br />
<br />
=== US Letter portrait: ===<br />
<br />
[[File:US_Letter_portrait.svg|400px]]<br />
<br />
=== US Letter ds Landscape: ===<br />
<br />
[[File:US_Letter_ds_Landscape.svg|800px]]<br />
<br />
=== US Legal ds Landscape: ===<br />
<br />
[[File:US_Legal_ds_Landscape.svg|800px]]<br />
<br />
=== US Ledger ds Landscape: ===<br />
<br />
[[File:US_Ledger_ds_Landscape.svg|800px]]<br />
<br />
==Other standards available==<br />
<br />
* [[ANSI_templates|ANSI templates]]: according to American National Standards Institute [http://en.wikipedia.org/wiki/American_National_Standards_Institute ANSI] standard<br />
* [[Arch_templates|Arch templates]]: according to American National Standards Institute [http://en.wikipedia.org/wiki/American_National_Standards_Institute Arch] standard <br />
* [[Misc_templates|Misc templates]]: mixed templates<br />
<br />
<br />
[[Category:Documentation]]<br />
<br />
<languages/></div>Bravikovhttps://wiki.freecad.org/index.php?title=Translations:Drawing_templates/1/ru&diff=194591Translations:Drawing templates/1/ru2016-07-31T09:04:24Z<p>Bravikov: Created page with "Создавать шаблоны для модуля чертежей (Drawing) легко и приятно. Смотрите также Drawing_Template_HowTo|руков..."</p>
<hr />
<div>Создавать шаблоны для модуля чертежей (Drawing) легко и приятно. Смотрите также [[Drawing_Template_HowTo|руководство по созданию шаблонов чертежей]].</div>Bravikovhttps://wiki.freecad.org/index.php?title=Drawing_templates/ru&diff=194590Drawing templates/ru2016-07-31T09:00:14Z<p>Bravikov: </p>
<hr />
<div><br />
== Создание SVG-шаблонов ==<br />
<br />
Creating templates for the Drawing module is very easy. See also the tutorial [[Drawing_Template_HowTo]]. Templates 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:<br />
* One pixel = one millimeter<br />
* 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:<br />
<syntaxhighlight><br />
<!-- DrawingContent --><br />
</syntaxhighlight><br />
In addition to these two rules, as of FreeCAD 0.14, Revision 2995, 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.<br />
<br />
To define the Border, the following line must appear before the <metadata tag in the svg file.<br />
<syntaxhighlight><br />
<!-- Working space X1 Y1 X2 Y2 --><br />
</syntaxhighlight><br />
Where X1, Y1, X2, Y2 are defined as:<br />
* X1 is the X axis distance from the left edge of the page to the left side of the Border.<br />
* Y1 is the Y axis distance from the top edge of the page the the top of the Border.<br />
* X2 is the X axis distance from the left edge of the page to the right side of the Border.<br />
* Y2 is the Y axis distance from the top edge of the page the the bottom of the Border.<br />
[[File:XY_Working_v2.svg]]<br />
<br />
To define the Title block the following line must be inserted before the <metadata tag and after the Working space tag.<br />
<syntaxhighlight><br />
<!-- Title block X1a Y1a X2a Y2a --><br />
</syntaxhighlight><br />
Where X1a, Y1a, X2a, Y2a are defined as:<br />
* X1a is the X axis distance from the left edge of the page to the left side of the Title block<br />
* Y1a is the Y axis distance from the top edge of the page the the top of the Title block<br />
* X2a is the X Axis distance from the left edge of the page to the right side of the Title block<br />
* Y2a is the Y axis distance from the top edge of the page the the bottom of the Title block<br />
* X1a <= X1 or X2a >= X2<br />
* Y1a <= Y1 or Y2a >= Y2<br />
[[File:XY_Title_v2.svg]]<br />
<br />
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:<br />
<syntaxhighlight><br />
<!-- Working space X1 Y1 X2 Y2 --><br />
<!-- Title block X1a Y1a X2a Y2a --><br />
</syntaxhighlight><br />
<br />
In order to enable up to scale printing, the real word size has to be given in the width and height attributes of the SVG-Tag. The size of the document in user units, (px), has to be given in the viewBox attribute.<br />
<br />
The following is to be formatted like the example below where:<br />
* xxx = pixel width<br />
* yyy = pixel height<br />
<syntaxhighlight><br />
width="xxxmm"<br />
height="yyymm"<br />
viewBox="0 0 xxx yyy"<br />
</syntaxhighlight><br />
<br />
* Several custom attributes can be placed in templates. The list of currently supported attributes is available on the [[Svg Namespace]] page.<br />
<br />
== DXF templates ==<br />
<br />
Since version 0.15, FreeCAD can reliably export a [[Drawing Module|Drawing]] page to the DXF format. This system also uses templates. If a dxf file with the same name is found in the same folder as the SVG template used for a page, it will be used for export. If not, a default empty template is created on the fly.<br />
<br />
Consequently, if you create your own SVG templates, and wish to be able to export the Drawing pages that you create with it to DXF, you just need to create a corresponding DXF template, and save it with the same name in the same folder.<br />
<br />
DXF templates can be created with any application that produces DXF files, such as LibreCAD. You then need to edit them with a text editor, and add two additional lines, one at the beginning or end of the BLOCKS section, and another at the beginning or end of the ENTITIES section, which are where FreeCAD will add its own blocks and entities.<br />
<br />
A very simple template looks like this:<br />
<br />
999<br />
FreeCAD DXF exporter v0.15<br />
0<br />
SECTION<br />
2<br />
HEADER<br />
9<br />
$ACADVER<br />
1<br />
AC1009<br />
0<br />
ENDSEC<br />
0<br />
SECTION<br />
2<br />
BLOCKS<br />
$blocks<br />
0<br />
ENDSEC<br />
0<br />
SECTION<br />
2<br />
ENTITIES<br />
$entities<br />
0<br />
ENDSEC<br />
0<br />
EOF<br />
<br />
The above template doesn't contain any entity. If you create your DXF file with a CAD application, there will likely be much more content inside the HEADER, BLOCKS and ENTITIES sections.<br />
<br />
The two lines that FreeCAD will be looking for are "$blocks" and "$entities". They must exist in the template, and they must be placed on their own line. You can choose to place them right after the BLOCKS or ENTITIES line, which is easier (just use the "search" function of your text editor to find them), or at the end, just before the "0 ENDSEC" lines (beware that there is one for each SECTION, make sure to use the ones relative to BLOCKS and ENTITIES). The latter method will place the FreeCAD objects after the objects defined in the template, which might be more logical.<br />
<br />
==A3 templates ==<br />
<br />
=== A3 Classic: ===<br />
[[Image:A3_Classic.svg|800px]]<br />
<br />
=== A3 Clean: ===<br />
[[Image:A3_Clean.svg|800px]]<br />
<br />
=== A3 Modern: ===<br />
[[Image:A3_Modern.svg|800px]]<br />
<br />
=== A3 Showcase: ===<br />
[[Image:A3_Showcase.svg|800px]]<br />
<br />
=== A3 Landscape english: ===<br />
[[File:A3_Landscape_english.svg|800px]]<br />
<br />
==A4 Templates ==<br />
<br />
=== A4 Landscape english: ===<br />
<br />
[[File:A4_Landscape_english.svg|800px]]<br />
<br />
=== A4 Portrait 1 english:===<br />
<br />
[[File:A4_Portrait_1_english.svg|400px]]<br />
<br />
==US Letter Templates ==<br />
<br />
=== US Letter landscape: ===<br />
<br />
[[File:US_Letter_landscape.svg|800px]]<br />
<br />
<br />
=== US Letter portrait: ===<br />
<br />
[[File:US_Letter_portrait.svg|400px]]<br />
<br />
=== US Letter ds Landscape: ===<br />
<br />
[[File:US_Letter_ds_Landscape.svg|800px]]<br />
<br />
=== US Legal ds Landscape: ===<br />
<br />
[[File:US_Legal_ds_Landscape.svg|800px]]<br />
<br />
=== US Ledger ds Landscape: ===<br />
<br />
[[File:US_Ledger_ds_Landscape.svg|800px]]<br />
<br />
==Other standards available==<br />
<br />
* [[ANSI_templates|ANSI templates]]: according to American National Standards Institute [http://en.wikipedia.org/wiki/American_National_Standards_Institute ANSI] standard<br />
* [[Arch_templates|Arch templates]]: according to American National Standards Institute [http://en.wikipedia.org/wiki/American_National_Standards_Institute Arch] standard <br />
* [[Misc_templates|Misc templates]]: mixed templates<br />
<br />
<br />
[[Category:Documentation]]<br />
<br />
<languages/></div>Bravikovhttps://wiki.freecad.org/index.php?title=Translations:Drawing_templates/36/ru&diff=194589Translations:Drawing templates/36/ru2016-07-31T09:00:13Z<p>Bravikov: </p>
<hr />
<div>== Создание SVG-шаблонов ==</div>Bravikovhttps://wiki.freecad.org/index.php?title=Drawing_templates/ru&diff=194588Drawing templates/ru2016-07-31T08:59:48Z<p>Bravikov: Created page with "Создание SVG-шаблонов"</p>
<hr />
<div><br />
Создание SVG-шаблонов<br />
<br />
Creating templates for the Drawing module is very easy. See also the tutorial [[Drawing_Template_HowTo]]. Templates 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:<br />
* One pixel = one millimeter<br />
* 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:<br />
<syntaxhighlight><br />
<!-- DrawingContent --><br />
</syntaxhighlight><br />
In addition to these two rules, as of FreeCAD 0.14, Revision 2995, 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.<br />
<br />
To define the Border, the following line must appear before the <metadata tag in the svg file.<br />
<syntaxhighlight><br />
<!-- Working space X1 Y1 X2 Y2 --><br />
</syntaxhighlight><br />
Where X1, Y1, X2, Y2 are defined as:<br />
* X1 is the X axis distance from the left edge of the page to the left side of the Border.<br />
* Y1 is the Y axis distance from the top edge of the page the the top of the Border.<br />
* X2 is the X axis distance from the left edge of the page to the right side of the Border.<br />
* Y2 is the Y axis distance from the top edge of the page the the bottom of the Border.<br />
[[File:XY_Working_v2.svg]]<br />
<br />
To define the Title block the following line must be inserted before the <metadata tag and after the Working space tag.<br />
<syntaxhighlight><br />
<!-- Title block X1a Y1a X2a Y2a --><br />
</syntaxhighlight><br />
Where X1a, Y1a, X2a, Y2a are defined as:<br />
* X1a is the X axis distance from the left edge of the page to the left side of the Title block<br />
* Y1a is the Y axis distance from the top edge of the page the the top of the Title block<br />
* X2a is the X Axis distance from the left edge of the page to the right side of the Title block<br />
* Y2a is the Y axis distance from the top edge of the page the the bottom of the Title block<br />
* X1a <= X1 or X2a >= X2<br />
* Y1a <= Y1 or Y2a >= Y2<br />
[[File:XY_Title_v2.svg]]<br />
<br />
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:<br />
<syntaxhighlight><br />
<!-- Working space X1 Y1 X2 Y2 --><br />
<!-- Title block X1a Y1a X2a Y2a --><br />
</syntaxhighlight><br />
<br />
In order to enable up to scale printing, the real word size has to be given in the width and height attributes of the SVG-Tag. The size of the document in user units, (px), has to be given in the viewBox attribute.<br />
<br />
The following is to be formatted like the example below where:<br />
* xxx = pixel width<br />
* yyy = pixel height<br />
<syntaxhighlight><br />
width="xxxmm"<br />
height="yyymm"<br />
viewBox="0 0 xxx yyy"<br />
</syntaxhighlight><br />
<br />
* Several custom attributes can be placed in templates. The list of currently supported attributes is available on the [[Svg Namespace]] page.<br />
<br />
== DXF templates ==<br />
<br />
Since version 0.15, FreeCAD can reliably export a [[Drawing Module|Drawing]] page to the DXF format. This system also uses templates. If a dxf file with the same name is found in the same folder as the SVG template used for a page, it will be used for export. If not, a default empty template is created on the fly.<br />
<br />
Consequently, if you create your own SVG templates, and wish to be able to export the Drawing pages that you create with it to DXF, you just need to create a corresponding DXF template, and save it with the same name in the same folder.<br />
<br />
DXF templates can be created with any application that produces DXF files, such as LibreCAD. You then need to edit them with a text editor, and add two additional lines, one at the beginning or end of the BLOCKS section, and another at the beginning or end of the ENTITIES section, which are where FreeCAD will add its own blocks and entities.<br />
<br />
A very simple template looks like this:<br />
<br />
999<br />
FreeCAD DXF exporter v0.15<br />
0<br />
SECTION<br />
2<br />
HEADER<br />
9<br />
$ACADVER<br />
1<br />
AC1009<br />
0<br />
ENDSEC<br />
0<br />
SECTION<br />
2<br />
BLOCKS<br />
$blocks<br />
0<br />
ENDSEC<br />
0<br />
SECTION<br />
2<br />
ENTITIES<br />
$entities<br />
0<br />
ENDSEC<br />
0<br />
EOF<br />
<br />
The above template doesn't contain any entity. If you create your DXF file with a CAD application, there will likely be much more content inside the HEADER, BLOCKS and ENTITIES sections.<br />
<br />
The two lines that FreeCAD will be looking for are "$blocks" and "$entities". They must exist in the template, and they must be placed on their own line. You can choose to place them right after the BLOCKS or ENTITIES line, which is easier (just use the "search" function of your text editor to find them), or at the end, just before the "0 ENDSEC" lines (beware that there is one for each SECTION, make sure to use the ones relative to BLOCKS and ENTITIES). The latter method will place the FreeCAD objects after the objects defined in the template, which might be more logical.<br />
<br />
==A3 templates ==<br />
<br />
=== A3 Classic: ===<br />
[[Image:A3_Classic.svg|800px]]<br />
<br />
=== A3 Clean: ===<br />
[[Image:A3_Clean.svg|800px]]<br />
<br />
=== A3 Modern: ===<br />
[[Image:A3_Modern.svg|800px]]<br />
<br />
=== A3 Showcase: ===<br />
[[Image:A3_Showcase.svg|800px]]<br />
<br />
=== A3 Landscape english: ===<br />
[[File:A3_Landscape_english.svg|800px]]<br />
<br />
==A4 Templates ==<br />
<br />
=== A4 Landscape english: ===<br />
<br />
[[File:A4_Landscape_english.svg|800px]]<br />
<br />
=== A4 Portrait 1 english:===<br />
<br />
[[File:A4_Portrait_1_english.svg|400px]]<br />
<br />
==US Letter Templates ==<br />
<br />
=== US Letter landscape: ===<br />
<br />
[[File:US_Letter_landscape.svg|800px]]<br />
<br />
<br />
=== US Letter portrait: ===<br />
<br />
[[File:US_Letter_portrait.svg|400px]]<br />
<br />
=== US Letter ds Landscape: ===<br />
<br />
[[File:US_Letter_ds_Landscape.svg|800px]]<br />
<br />
=== US Legal ds Landscape: ===<br />
<br />
[[File:US_Legal_ds_Landscape.svg|800px]]<br />
<br />
=== US Ledger ds Landscape: ===<br />
<br />
[[File:US_Ledger_ds_Landscape.svg|800px]]<br />
<br />
==Other standards available==<br />
<br />
* [[ANSI_templates|ANSI templates]]: according to American National Standards Institute [http://en.wikipedia.org/wiki/American_National_Standards_Institute ANSI] standard<br />
* [[Arch_templates|Arch templates]]: according to American National Standards Institute [http://en.wikipedia.org/wiki/American_National_Standards_Institute Arch] standard <br />
* [[Misc_templates|Misc templates]]: mixed templates<br />
<br />
<br />
[[Category:Documentation]]<br />
<br />
<languages/></div>Bravikovhttps://wiki.freecad.org/index.php?title=Translations:Drawing_templates/36/ru&diff=194587Translations:Drawing templates/36/ru2016-07-31T08:59:46Z<p>Bravikov: Created page with "Создание SVG-шаблонов"</p>
<hr />
<div>Создание SVG-шаблонов</div>Bravikovhttps://wiki.freecad.org/index.php?title=Drawing_templates/ru&diff=194562Drawing templates/ru2016-07-30T21:12:13Z<p>Bravikov: Created page with "Шаблоны чертежей"</p>
<hr />
<div><br />
== SVG templates creation ==<br />
<br />
Creating templates for the Drawing module is very easy. See also the tutorial [[Drawing_Template_HowTo]]. Templates 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:<br />
* One pixel = one millimeter<br />
* 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:<br />
<syntaxhighlight><br />
<!-- DrawingContent --><br />
</syntaxhighlight><br />
In addition to these two rules, as of FreeCAD 0.14, Revision 2995, 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.<br />
<br />
To define the Border, the following line must appear before the <metadata tag in the svg file.<br />
<syntaxhighlight><br />
<!-- Working space X1 Y1 X2 Y2 --><br />
</syntaxhighlight><br />
Where X1, Y1, X2, Y2 are defined as:<br />
* X1 is the X axis distance from the left edge of the page to the left side of the Border.<br />
* Y1 is the Y axis distance from the top edge of the page the the top of the Border.<br />
* X2 is the X axis distance from the left edge of the page to the right side of the Border.<br />
* Y2 is the Y axis distance from the top edge of the page the the bottom of the Border.<br />
[[File:XY_Working_v2.svg]]<br />
<br />
To define the Title block the following line must be inserted before the <metadata tag and after the Working space tag.<br />
<syntaxhighlight><br />
<!-- Title block X1a Y1a X2a Y2a --><br />
</syntaxhighlight><br />
Where X1a, Y1a, X2a, Y2a are defined as:<br />
* X1a is the X axis distance from the left edge of the page to the left side of the Title block<br />
* Y1a is the Y axis distance from the top edge of the page the the top of the Title block<br />
* X2a is the X Axis distance from the left edge of the page to the right side of the Title block<br />
* Y2a is the Y axis distance from the top edge of the page the the bottom of the Title block<br />
* X1a <= X1 or X2a >= X2<br />
* Y1a <= Y1 or Y2a >= Y2<br />
[[File:XY_Title_v2.svg]]<br />
<br />
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:<br />
<syntaxhighlight><br />
<!-- Working space X1 Y1 X2 Y2 --><br />
<!-- Title block X1a Y1a X2a Y2a --><br />
</syntaxhighlight><br />
<br />
In order to enable up to scale printing, the real word size has to be given in the width and height attributes of the SVG-Tag. The size of the document in user units, (px), has to be given in the viewBox attribute.<br />
<br />
The following is to be formatted like the example below where:<br />
* xxx = pixel width<br />
* yyy = pixel height<br />
<syntaxhighlight><br />
width="xxxmm"<br />
height="yyymm"<br />
viewBox="0 0 xxx yyy"<br />
</syntaxhighlight><br />
<br />
* Several custom attributes can be placed in templates. The list of currently supported attributes is available on the [[Svg Namespace]] page.<br />
<br />
== DXF templates ==<br />
<br />
Since version 0.15, FreeCAD can reliably export a [[Drawing Module|Drawing]] page to the DXF format. This system also uses templates. If a dxf file with the same name is found in the same folder as the SVG template used for a page, it will be used for export. If not, a default empty template is created on the fly.<br />
<br />
Consequently, if you create your own SVG templates, and wish to be able to export the Drawing pages that you create with it to DXF, you just need to create a corresponding DXF template, and save it with the same name in the same folder.<br />
<br />
DXF templates can be created with any application that produces DXF files, such as LibreCAD. You then need to edit them with a text editor, and add two additional lines, one at the beginning or end of the BLOCKS section, and another at the beginning or end of the ENTITIES section, which are where FreeCAD will add its own blocks and entities.<br />
<br />
A very simple template looks like this:<br />
<br />
999<br />
FreeCAD DXF exporter v0.15<br />
0<br />
SECTION<br />
2<br />
HEADER<br />
9<br />
$ACADVER<br />
1<br />
AC1009<br />
0<br />
ENDSEC<br />
0<br />
SECTION<br />
2<br />
BLOCKS<br />
$blocks<br />
0<br />
ENDSEC<br />
0<br />
SECTION<br />
2<br />
ENTITIES<br />
$entities<br />
0<br />
ENDSEC<br />
0<br />
EOF<br />
<br />
The above template doesn't contain any entity. If you create your DXF file with a CAD application, there will likely be much more content inside the HEADER, BLOCKS and ENTITIES sections.<br />
<br />
The two lines that FreeCAD will be looking for are "$blocks" and "$entities". They must exist in the template, and they must be placed on their own line. You can choose to place them right after the BLOCKS or ENTITIES line, which is easier (just use the "search" function of your text editor to find them), or at the end, just before the "0 ENDSEC" lines (beware that there is one for each SECTION, make sure to use the ones relative to BLOCKS and ENTITIES). The latter method will place the FreeCAD objects after the objects defined in the template, which might be more logical.<br />
<br />
==A3 templates ==<br />
<br />
=== A3 Classic: ===<br />
[[Image:A3_Classic.svg|800px]]<br />
<br />
=== A3 Clean: ===<br />
[[Image:A3_Clean.svg|800px]]<br />
<br />
=== A3 Modern: ===<br />
[[Image:A3_Modern.svg|800px]]<br />
<br />
=== A3 Showcase: ===<br />
[[Image:A3_Showcase.svg|800px]]<br />
<br />
=== A3 Landscape english: ===<br />
[[File:A3_Landscape_english.svg|800px]]<br />
<br />
==A4 Templates ==<br />
<br />
=== A4 Landscape english: ===<br />
<br />
[[File:A4_Landscape_english.svg|800px]]<br />
<br />
=== A4 Portrait 1 english:===<br />
<br />
[[File:A4_Portrait_1_english.svg|400px]]<br />
<br />
==US Letter Templates ==<br />
<br />
=== US Letter landscape: ===<br />
<br />
[[File:US_Letter_landscape.svg|800px]]<br />
<br />
<br />
=== US Letter portrait: ===<br />
<br />
[[File:US_Letter_portrait.svg|400px]]<br />
<br />
=== US Letter ds Landscape: ===<br />
<br />
[[File:US_Letter_ds_Landscape.svg|800px]]<br />
<br />
=== US Legal ds Landscape: ===<br />
<br />
[[File:US_Legal_ds_Landscape.svg|800px]]<br />
<br />
=== US Ledger ds Landscape: ===<br />
<br />
[[File:US_Ledger_ds_Landscape.svg|800px]]<br />
<br />
==Other standards available==<br />
<br />
* [[ANSI_templates|ANSI templates]]: according to American National Standards Institute [http://en.wikipedia.org/wiki/American_National_Standards_Institute ANSI] standard<br />
* [[Arch_templates|Arch templates]]: according to American National Standards Institute [http://en.wikipedia.org/wiki/American_National_Standards_Institute Arch] standard <br />
* [[Misc_templates|Misc templates]]: mixed templates<br />
<br />
<br />
[[Category:Documentation]]<br />
<br />
<languages/></div>Bravikovhttps://wiki.freecad.org/index.php?title=Translations:Drawing_templates/Page_display_title/ru&diff=194561Translations:Drawing templates/Page display title/ru2016-07-30T21:12:13Z<p>Bravikov: Created page with "Шаблоны чертежей"</p>
<hr />
<div>Шаблоны чертежей</div>Bravikov