99 lines
7.0 KiB
HTML
99 lines
7.0 KiB
HTML
<html><head><title>Draft SelectPlane</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><link type='text/css' href='wiki.css' rel='stylesheet'></head><body><h1>Draft SelectPlane</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="Draft_SelectPlane"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Draft_SelectPlane.png" class="image"><img alt="Draft SelectPlane.png" src="32px-Draft_SelectPlane.png" width="32" height="32" srcset="/wiki/images/thumb/a/aa/Draft_SelectPlane.png/48px-Draft_SelectPlane.png 1.5x, /wiki/images/a/aa/Draft_SelectPlane.png 2x" /></a> Draft SelectPlane</span></h3>
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">Menu location
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven">Draft → Utilities → Select Plane
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">Workbenches
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven"><a href="Draft_Module.html" title="Draft Module">Draft</a>, <a href="Arch_Module.html" title="Arch Module">Arch</a>
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">Default shortcut
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven">W P
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">See also
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven"><a href="Draft_SetWorkingPlaneProxy.html" title="Draft SetWorkingPlaneProxy">Draft SetWorkingPlaneProxy</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="#Draft_SelectPlane"><span class="tocnumber">1</span> <span class="toctext">Draft SelectPlane</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="#Scripting"><span class="tocnumber">5</span> <span class="toctext">Scripting</span></a></li>
|
|
</ul>
|
|
</div>
|
|
|
|
</td></tr></table>
|
|
<p><br />
|
|
</p>
|
|
<h2><span class="mw-headline" id="Description">Description</span></h2>
|
|
<p>The Draft module features a working plane system, that allows you to specify a custom plane in the 3D space on which next Draft command will occur. There are several methods to define the working plane:
|
|
</p>
|
|
<ul><li> From a selected face</li>
|
|
<li> From 3 selected vertices</li>
|
|
<li> From the current view</li>
|
|
<li> From a preset: top, frontal or lateral</li>
|
|
<li> None, in which case the working plane is adapted automatically to the current view when you start a command, or to a face if you start drawing on an existing face.</li></ul>
|
|
<p><a href="https://www.freecadweb.org/wiki/index.php?title=File:Workingplane_example.jpg" class="image"><img alt="Workingplane example.jpg" src="Workingplane_example.jpg" width="400" height="274" /></a>
|
|
</p>
|
|
<h2><span class="mw-headline" id="How_to_use">How to use</span></h2>
|
|
<ol><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:Draft_SelectPlane.png" class="image"><img alt="Draft SelectPlane.png" src="16px-Draft_SelectPlane.png" width="16" height="16" srcset="/wiki/images/thumb/a/aa/Draft_SelectPlane.png/24px-Draft_SelectPlane.png 1.5x, 32px-Draft_SelectPlane.png 2x" /></a> <a class="mw-selflink selflink">SelectPlane</a></span> button. If your button doesn't look like this, see this <a href="/wiki/Basic_modeling_tutorial#Note_on_Draft_Working_Plane_Button" title="Basic modeling tutorial">note</a>.</li></ol>
|
|
<h2><span class="mw-headline" id="Options">Options</span></h2>
|
|
<ul><li> To set the workplane to existing geometry: select a face of an existing object in the 3D view, or, <span style="font-size:x-small;"><a href="Release_notes_0.17.html" title="Release notes 0.17">available in version 0.17</a></span></li></ul>
|
|
<p>, with CTRL pressed, 3 vertices on any object(s). Then 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:Draft_SelectPlane.png" class="image"><img alt="Draft SelectPlane.png" src="16px-Draft_SelectPlane.png" width="16" height="16" srcset="/wiki/images/thumb/a/aa/Draft_SelectPlane.png/24px-Draft_SelectPlane.png 1.5x, 32px-Draft_SelectPlane.png 2x" /></a> <a class="mw-selflink selflink">SelectPlane</a></span> button
|
|
</p>
|
|
<ul><li> Pressing the <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"><b>VIEW</b></span> button will set the working plane as the view plane, perpendicular to the camera axis and passing through the (0,0,0) origin point.</li>
|
|
<li> Pressing the <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"><b>AUTO</b></span> will unset any current working plane. The next 2D operations will be view-dependent.</li>
|
|
<li> You can also specify an offset value, which will set your working plane at a certain distance from the plane you select.</li>
|
|
<li> You can hide and show the grid with the shortcut <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"><b>G</b></span><span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"><b>R</b></span></li></ul>
|
|
<h2><span class="mw-headline" id="Scripting">Scripting</span></h2>
|
|
<p>Working plane objects can easily be created and manipulated in scripts and <a href="Macros.html" title="Macros">macros</a>. You can create your own, and use them independently of the current Draft working plane.
|
|
</p><p>Example:
|
|
</p>
|
|
<pre>import WorkingPlane
|
|
myPlane = WorkingPlane.plane() </pre>
|
|
<p>You can also access the current Draft working plane:
|
|
</p>
|
|
<pre>import FreeCAD
|
|
draftPlane = FreeCAD.DraftWorkingPlane </pre>
|
|
<p>To move or rotate the Draft working plane (see the <a rel="nofollow" class="external text" href="http://www.freecadweb.org/api/DraftWorkingPlane.html">WorkingPlane API</a> page for available methods):
|
|
</p>
|
|
<pre>import FreeCAD
|
|
from FreeCAD import Vector
|
|
FreeCAD.DraftWorkingPlane.alignToPointAndAxis(Vector(0,0,0), Vector(1,1,1).normalize(), 17) </pre>
|
|
<p>(note: a Draft command must have been issued to make grid adopt changes)
|
|
</p><p>The working plane has a complete <a rel="nofollow" class="external text" href="http://www.freecadweb.org/api/DraftWorkingPlane.html">scripting API</a> on its own, with convenience functions to position it and convert to/from placements.
|
|
</p>
|
|
<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=Draft_SelectPlane&oldid=270473">http://www.freecadweb.org/wiki/index.php?title=Draft_SelectPlane&oldid=270473</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> |