91 lines
5.6 KiB
HTML
91 lines
5.6 KiB
HTML
<html><head><title>TechDraw GeomHatch</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 GeomHatch</h1></div>
|
|
|
|
<div id="mw-content-text" lang="en" dir="ltr" class="mw-content-ltr"><div class="mw-parser-output"><table class="fcinfobox wikitable ct" >
|
|
<tr>
|
|
<td class="ctTitle">
|
|
<h3><span class="mw-headline" id="TechDraw_GeomHatch"><a href="https://www.freecadweb.org/wiki/index.php?title=File:TechDraw_GeomHatch.png" class="image"><img alt="TechDraw GeomHatch.png" src="TechDraw_GeomHatch.png" width="32" height="32" /></a> TechDraw GeomHatch</span></h3>
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">Menu location
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven">TechDraw → GeomHatch
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">Workbenches
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven"><a href="TechDraw_Module.html" title="TechDraw Module">TechDraw</a>
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">Default shortcut
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven">
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">See also
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven"><a href="TechDraw_Hatching.html" title="TechDraw Hatching">TechDraw Hatching</a>
|
|
</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_GeomHatch"><span class="tocnumber">1</span> <span class="toctext">TechDraw GeomHatch</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>
|
|
<h2><span class="mw-headline" id="Description">Description</span></h2>
|
|
<p>The Geometric Hatch tool fill a Face with a pattern based on an AutoDesk PAT hatching specification. A small set of sample patterns are available in ".../Mod/TechDraw/PAT/FCPAT.pat".
|
|
</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-geomhatch.png" class="image"><img alt="Techdraw-geomhatch.png" src="16px-Techdraw-geomhatch.png" width="16" height="16" srcset="/wiki/images/thumb/c/c9/Techdraw-geomhatch.png/24px-Techdraw-geomhatch.png 1.5x, /wiki/images/thumb/c/c9/Techdraw-geomhatch.png/32px-Techdraw-geomhatch.png 2x" /></a> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Hatch</span> button</li>
|
|
<li> a dialog will open where you may select your pattern, a scale for the pattern and a line weight.</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> and/or "wiggle" the parent View to get the pattern to update.</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>File Pattern</b>: The location of the PAT file to use.</li>
|
|
<li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>Name Pattern</b>: The name of the PAT specification within File Pattern.</li>
|
|
<li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>Scale Pattern</b>: The scale to be applied to the pattern (must be > 0.0).</li>
|
|
<li> <span style="font-size: 0.6em;padding-right:10px;">VIEW</span><b>Weight Pattern</b>: The thickness of the pattern lines.</li>
|
|
<li> <span style="font-size: 0.6em;padding-right:10px;">VIEW</span><b>Color Pattern</b>: The color for the pattern lines.</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::DrawGeomHatch','GeomHatch')
|
|
hatch.Source = (view1,["Face0"])
|
|
hatch.FilePattern = "path/to/myPATfile.pat"
|
|
hatch.NamePattern = "Diamond"
|
|
rc = page.addView(hatch) </pre>
|
|
<h2><span class="mw-headline" id="Notes">Notes</span></h2>
|
|
<ul><li> Note that geometric hatch patterns ARE 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_GeomHatch&oldid=247819">http://www.freecadweb.org/wiki/index.php?title=TechDraw_GeomHatch&oldid=247819</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> |