93 lines
7.7 KiB
HTML
93 lines
7.7 KiB
HTML
<html><head><title>Draft Rotate/ro</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 Rotate/ro</h1></div>
|
|
|
|
<div id="mw-content-text" lang="ro" 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="Draft_Rotate"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Draft_Rotate.png" class="image"><img alt="Draft Rotate.png" src="32px-Draft_Rotate.png" width="32" height="32" srcset="/wiki/images/thumb/5/5a/Draft_Rotate.png/48px-Draft_Rotate.png 1.5x, /wiki/images/5/5a/Draft_Rotate.png 2x" /></a> Draft Rotate</span></h3>
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">poziția meniului
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven">Draft -> Rotate
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">Workbenches
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven"><a href="https://www.freecadweb.org/wiki/index.php?title=Draft_Module/ro" title="Draft Module/ro">Draft</a>, <a href="https://www.freecadweb.org/wiki/index.php?title=Arch_Module/ro" title="Arch Module/ro">Arch</a>
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">scurtătură
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven">R O
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">A se vedea, de asemenea,
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven">nici unul
|
|
</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_Rotate.html"><span class="tocnumber">1</span> <span class="toctext">Draft Rotate</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>
|
|
</div>
|
|
<h2><span class="mw-headline" id="Description">Description</span></h2>
|
|
<p>This tool rotates or copies the selected objects by a given angle around a point on the current <a href="Draft_SelectPlane.html" title="Draft SelectPlane">work plane</a>. If no object is selected, you will be invited to select one.
|
|
</p><p><a href="https://www.freecadweb.org/wiki/index.php?title=File:Draft_Rotate_example.jpg" class="image"><img alt="Draft Rotate example.jpg" src="400px-Draft_Rotate_example.jpg" width="400" height="248" srcset="/wiki/images/thumb/3/31/Draft_Rotate_example.jpg/600px-Draft_Rotate_example.jpg 1.5x, /wiki/images/3/31/Draft_Rotate_example.jpg 2x" /></a>
|
|
</p>
|
|
<h2><span class="mw-headline" id="How_to_use">How to use</span></h2>
|
|
<ol><li> Select objects you wish to rotate or copy</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:Draft_Rotate.png" class="image"><img alt="Draft Rotate.png" src="16px-Draft_Rotate.png" width="16" height="16" srcset="/wiki/images/thumb/5/5a/Draft_Rotate.png/24px-Draft_Rotate.png 1.5x, 32px-Draft_Rotate.png 2x" /></a> <a href="Draft_Rotate.html" title="Draft Rotate">Draft Rotate</a></span> button, or press <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">R</span> then <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">O</span> keys</li>
|
|
<li> Click a center point on the 3D view, or type a <a href="Draft_Coordinates.html" title="Draft Coordinates">coordinate</a></li>
|
|
<li> Click a second point on the 3D view, or give a reference angle</li>
|
|
<li> Click a third point on the 3D view, or give a rotation angle</li></ol>
|
|
<h2><span class="mw-headline" id="Options">Options</span></h2>
|
|
<ul><li> Press <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">X</span>, <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Y</span> or <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Z</span> after a point to constrain the next point on the given axis.</li>
|
|
<li> To enter coordinates manually, simply enter the numbers, then press <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">ENTER</span> between each X, Y and Z component.</li>
|
|
<li> Press <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">T</span> or click the checkbox to check/uncheck the <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"><b>Continue</b></span> button. If continue mode is on, the Rotate tool will restart after you finish or close it, allowing you to rotate or copy the objects another time without pressing the Rotate button again.</li>
|
|
<li> Pressing <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">ALT</span> or <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">C</span> or clicking the <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"><b>Copy</b></span> button will make a copy of the objects, instead of rotating them. If you keep <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">ALT</span> pressed after clicking the third point, you will be able to place more copies, until you release the <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">ALT</span> key.</li>
|
|
<li> Press <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">CTRL</span> while drawing to force <a href="Draft_Snap.html" title="Draft Snap">snapping</a> your point to the nearest snap location, independently of the distance.</li>
|
|
<li> Press <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">SHIFT</span> while drawing to <a href="Draft_Constrain.html" title="Draft Constrain">constrain</a> your next point horizontally or vertically in relation to the rotation center.</li>
|
|
<li> Press <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">ESC</span> or the <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"><b>Cancel</b></span> button to abort the current command.</li></ul>
|
|
<h2><span class="mw-headline" id="Scripting">Scripting</span></h2>
|
|
<p>The Rotate tool can by used in <a href="Macros.html" title="Macros">macros</a> and from the python console by using the following function:
|
|
</p>
|
|
<pre>rotate (FreeCAD.Object or list, angle, [center], [axis] ,[copymode]) </pre>
|
|
<ul><li> Rotates the given object or the objects contained in the given list with the given angle around the given center if provided, using axis as a rotation axis. </li>
|
|
<li> If axis is omitted, the rotation will be around the vertical Z axis. </li>
|
|
<li> If copymode is True, the actual objects are not moved, but copies are created instead. </li>
|
|
<li> Returns the objects (or their copies is copymode was True).</li></ul>
|
|
<p>Example:
|
|
</p>
|
|
<pre>import FreeCAD,Draft
|
|
Draft.rotate(FreeCAD.ActiveDocument.ActiveObject,45) </pre>
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div><div class="printfooter">
|
|
Online version: "<a dir="ltr" href="https://www.freecadweb.org/wiki/index.php?title=Draft_Rotate/ro&oldid=279614">http://www.freecadweb.org/wiki/index.php?title=Draft_Rotate/ro&oldid=279614</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> |