FreeCAD-Doc/localwiki/TechDraw_Hatch-ru.html
2018-07-19 18:47:02 -05:00

91 lines
5.4 KiB
HTML

<html><head><title>TechDraw Hatch/ru</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><link type='text/css' href='wiki.css' rel='stylesheet'></head><body><h1>TechDraw Hatch/ru</h1></div>
<div id="mw-content-text" lang="ru" dir="ltr" class="mw-content-ltr"><hr/>
<div class="mw-parser-output"><div class="mw-translate-fuzzy">
<table class="fcinfobox wikitable ct" >
<tr>
<td class="ctTitle">
<h3><span class="mw-headline" id="TechDraw_Hatch"><a href="https://www.freecadweb.org/wiki/index.php?title=File:TechDraw_Hatch.png" class="image"><img alt="TechDraw Hatch.png" src="32px-TechDraw_Hatch.png" width="32" height="32" srcset="/wiki/images/thumb/0/00/TechDraw_Hatch.png/48px-TechDraw_Hatch.png 1.5x, /wiki/images/0/00/TechDraw_Hatch.png 2x" /></a> TechDraw Hatch</span></h3>
</td></tr>
<tr>
<th class="ctOdd">Расположение в меню
</th></tr>
<tr>
<td class="ctEven">TechDraw → Hatch
</td></tr>
<tr>
<th class="ctOdd">Верстаки
</th></tr>
<tr>
<td class="ctEven"><a href="https://www.freecadweb.org/wiki/index.php?title=TechDraw_Module/ru" title="TechDraw Module/ru">TechDraw</a>
</td></tr>
<tr>
<th class="ctOdd">Быстрые клавиши
</th></tr>
<tr>
<td class="ctEven">
</td></tr>
<tr>
<th class="ctOdd">См. также
</th></tr>
<tr>
<td class="ctEven">
</td></tr>
<tr>
<td class="ctToc"><br /><div id="toc" class="toc"><div class="toctitle"><h2>Contents</h2></div>
<ul>
<li class="toclevel-1"><a href="#TechDraw_Hatch"><span class="tocnumber">1</span> <span class="toctext">TechDraw Hatch</span></a></li>
<li class="toclevel-1 tocsection-1"><a href="#Description"><span class="tocnumber">2</span> <span class="toctext">Description</span></a></li>
<li class="toclevel-1 tocsection-2"><a href="#How_to_use"><span class="tocnumber">3</span> <span class="toctext">How to use</span></a></li>
<li class="toclevel-1 tocsection-3"><a href="#Options"><span class="tocnumber">4</span> <span class="toctext">Options</span></a></li>
<li class="toclevel-1 tocsection-4"><a href="#Properties"><span class="tocnumber">5</span> <span class="toctext">Properties</span></a></li>
<li class="toclevel-1 tocsection-5"><a href="#Scripting"><span class="tocnumber">6</span> <span class="toctext">Scripting</span></a></li>
<li class="toclevel-1 tocsection-6"><a href="#Notes"><span class="tocnumber">7</span> <span class="toctext">Notes</span></a></li>
</ul>
</div>
</td></tr></table>
<p><br />
</p>
</div>
<h2><span class="mw-headline" id="Description">Description</span></h2>
<p>The Hatch tool fills a closed region in a View with a Hatch pattern. Patterns are created as SVG or bitmap files. Sample SVG patterns are available in ".../Mod/Draft/Resources/patterns".
</p>
<h2><span class="mw-headline" id="How_to_use">How to use</span></h2>
<ol><li> Select an closed region in a View. The region will turn green. </li>
<li> Press the <a href="https://www.freecadweb.org/wiki/index.php?title=File:TechDraw_Hatch.png" class="image"><img alt="TechDraw Hatch.png" src="16px-TechDraw_Hatch.png" width="16" height="16" srcset="/wiki/images/thumb/0/00/TechDraw_Hatch.png/24px-TechDraw_Hatch.png 1.5x, 32px-TechDraw_Hatch.png 2x" /></a> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Hatch</span> button</li>
<li> You may need to press recompute <a href="https://www.freecadweb.org/wiki/index.php?title=File:View-rotate-right.png" class="image"><img alt="View-rotate-right.png" src="16px-View-rotate-right.png" width="16" height="16" srcset="/wiki/images/thumb/5/5d/View-rotate-right.png/24px-View-rotate-right.png 1.5x, /wiki/images/thumb/5/5d/View-rotate-right.png/32px-View-rotate-right.png 2x" /></a>.</li></ol>
<h2><span class="mw-headline" id="Options">Options</span></h2>
<p>None.
</p>
<h2><span class="mw-headline" id="Properties">Properties</span></h2>
<ul><li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>Source</b>: The View and Face to receive the hatch pattern.</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>Hatch Pattern</b>: Full path and filename to an SVG pattern file.</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">VIEW</span><b>Hatch Color</b>: Hatch pattern will be displayed in this color.</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">VIEW</span><b>Hatch Scale</b>: Hatch pattern size modifier.</li></ul>
<h2><span class="mw-headline" id="Scripting">Scripting</span></h2>
<p>Hatch can be added to areas in Views using Python.
</p>
<pre>hatch = FreeCAD.ActiveDocument.addObject('TechDraw::DrawHatch','Hatch')
hatch.Source = (view1,["Face0"])
hatch.HatchPattern = hatchFileSpec
rc = page.addView(hatch) </pre>
<h2><span class="mw-headline" id="Notes">Notes</span></h2>
<ul><li> Hatching is vulnerable to the infamous "topological naming problem". Best Practice is to defer Hatching until the design is stable. </li>
<li> Note that Svg hatch patterns are not included when a drawing page is saved as an Svg file.</li></ul>
<div style="clear:both"></div>
</div>
</div>
</div><div class="printfooter">
Online version: "<a dir="ltr" href="https://www.freecadweb.org/wiki/index.php?title=TechDraw_Hatch/ru&amp;oldid=288894">http://www.freecadweb.org/wiki/index.php?title=TechDraw_Hatch/ru&amp;oldid=288894</a>"</div>
<div id="catlinks" class="catlinks" data-mw="interface"></div><div class="visualClear"></div>
</div>
</div>
<div id="mw-navigation">
<h2>Navigation menu</h2>
</body></html>