105 lines
6.7 KiB
HTML
105 lines
6.7 KiB
HTML
<html><head><title>TechDraw NewSection</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 NewSection</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_NewSection"><a href="https://www.freecadweb.org/wiki/index.php?title=File:TechDraw_NewSection.png" class="image"><img alt="TechDraw NewSection.png" src="32px-TechDraw_NewSection.png" width="32" height="32" srcset="/wiki/images/thumb/4/45/TechDraw_NewSection.png/48px-TechDraw_NewSection.png 1.5x, /wiki/images/4/45/TechDraw_NewSection.png 2x" /></a> TechDraw NewSection</span></h3>
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">Menu location
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven">TechDraw → Section
|
|
</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">
|
|
</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_NewSection"><span class="tocnumber">1</span> <span class="toctext">TechDraw NewSection</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 Section tool creates a cross section view based on an existing part view.
|
|
</p>
|
|
<div class="center"><div class="floatnone"><a href="https://www.freecadweb.org/wiki/index.php?title=File:ViewSection.png" class="image"><img alt="ViewSection.png" src="ViewSection.png" width="200" height="240" /></a></div></div>
|
|
<h2><span class="mw-headline" id="How_to_use">How to use</span></h2>
|
|
<ol><li> Select a part view in the 3D window or tree.</li>
|
|
<li> If you have multiple drawing pages in your document, you will also need to select the desired page in the tree.</li>
|
|
<li> Press the <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Techdraw-viewsection.png" class="image"><img alt="Techdraw-viewsection.png" src="24px-Techdraw-viewsection.png" width="24" height="24" srcset="/wiki/images/thumb/e/e9/Techdraw-viewsection.png/36px-Techdraw-viewsection.png 1.5x, /wiki/images/thumb/e/e9/Techdraw-viewsection.png/48px-Techdraw-viewsection.png 2x" /></a> <a class="mw-selflink selflink">Section</a></span> button</li>
|
|
<li> A dialog will open which will help calculate the various Section properties. The dialog calculates reasonable starting points for SectionNormal and view Direction, but these may be changed after creation for special needs.</li></ol>
|
|
<div class="center"><div class="floatnone"><a href="https://www.freecadweb.org/wiki/index.php?title=File:TaskViewSection.png" class="image"><img alt="TaskViewSection.png" src="300px-TaskViewSection.png" width="300" height="540" srcset="/wiki/images/2/2b/TaskViewSection.png 1.5x" /></a></div></div>
|
|
<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>BaseView</b>: The part view on which this ViewSection is based.</li>
|
|
<li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>SectionNormal</b>: A vector describing the direction normal to the cutting plane.</li>
|
|
<li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>SectionOrigin</b>: A vector describing a point on the cutting plane. Typically the centroid of the original part. </li>
|
|
<li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>FileHatchPattern</b>: Full path to hatch pattern file.</li>
|
|
<li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>NameGeomPattern</b>: Name of PAT pattern to use (blank for Svg hatch).</li>
|
|
<li> <span style="font-size: 0.6em;padding-right:10px;">VIEW</span><b>ShowCutSurface</b>: Highlight the section surface if true. </li>
|
|
<li> <span style="font-size: 0.6em;padding-right:10px;">VIEW</span><b>CutSurfaceColor</b>: Solid color for surface highlight. </li>
|
|
<li> <span style="font-size: 0.6em;padding-right:10px;">VIEW</span><b>HatchColor</b>: Color for surface hatch lines. </li>
|
|
<li> <span style="font-size: 0.6em;padding-right:10px;">VIEW</span><b>WeightPattern</b>: Line weight for surface hatch lines. </li></ul>
|
|
<p>Note: Section inherits all applicable View properties.
|
|
</p>
|
|
<h2><span class="mw-headline" id="Scripting">Scripting</span></h2>
|
|
<p>Sections can be added to Pages using Python.
|
|
</p>
|
|
<pre>view = FreeCAD.ActiveDocument.addObject('TechDraw::DrawViewPart','View')
|
|
rc = page.addView(view)
|
|
view.Source = box
|
|
view.Direction = (0.0,0.0,1.0)
|
|
|
|
section = FreeCAD.ActiveDocument.addObject('TechDraw::DrawViewSection','Section')
|
|
rc = page.addView(section)
|
|
section.Source = box
|
|
section.BaseView = view
|
|
section.Direction = (0.0,1.0,0.0)
|
|
section.SectionNormal = (0.0,0.0,1.0)
|
|
section.SectionOrigin = (5.0,5.0,5.0) </pre>
|
|
<h2><span class="mw-headline" id="Notes">Notes</span></h2>
|
|
<ul><li> If you make a mistake, or change your mind while setting up the Section parameters, press the Reset button at the bottom of the Task Dialogue and you can start over.</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_NewSection&oldid=264598">http://www.freecadweb.org/wiki/index.php?title=TechDraw_NewSection&oldid=264598</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> |