116 lines
10 KiB
HTML
116 lines
10 KiB
HTML
<html><head><title>Draft Rectangle/sv</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 Rectangle/sv</h1></div>
|
|
|
|
<div id="mw-content-text" lang="sv" 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_Rectangle"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Draft_Rectangle.png" class="image"><img alt="Draft Rectangle.png" src="32px-Draft_Rectangle.png" width="32" height="32" srcset="/wiki/images/thumb/1/14/Draft_Rectangle.png/48px-Draft_Rectangle.png 1.5x, /wiki/images/1/14/Draft_Rectangle.png 2x" /></a> Draft Rectangle</span></h3>
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">Menyplacering
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven">Draft -> Rectangle
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">Arbetsbänk(ar)
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven"><a href="https://www.freecadweb.org/wiki/index.php?title=Draft_Module/sv" title="Draft Module/sv">Draft</a>, <a href="https://www.freecadweb.org/wiki/index.php?title=Arch_Module/sv" title="Arch Module/sv">Arch</a>
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">Standard genväg
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven">R E
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">Se även
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven"><a href="https://www.freecadweb.org/wiki/index.php?title=Part_Box/sv" title="Part Box/sv">Part Box</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_Rectangle"><span class="tocnumber">1</span> <span class="toctext">Draft Rectangle</span></a>
|
|
<ul>
|
|
<li class="toclevel-2 tocsection-1"><a href="#Beskrivning"><span class="tocnumber">1.1</span> <span class="toctext">Beskrivning</span></a></li>
|
|
<li class="toclevel-2 tocsection-2"><a href="#Bruk"><span class="tocnumber">1.2</span> <span class="toctext">Bruk</span></a></li>
|
|
</ul>
|
|
</li>
|
|
<li class="toclevel-1 tocsection-3"><a href="#Options"><span class="tocnumber">2</span> <span class="toctext">Options</span></a></li>
|
|
<li class="toclevel-1 tocsection-4"><a href="#Properties"><span class="tocnumber">3</span> <span class="toctext">Properties</span></a></li>
|
|
<li class="toclevel-1 tocsection-5"><a href="#Scripting"><span class="tocnumber">4</span> <span class="toctext">Scripting</span></a></li>
|
|
</ul>
|
|
</div>
|
|
|
|
</td></tr></table>
|
|
<p><br />
|
|
</p>
|
|
</div>
|
|
<h4><span class="mw-headline" id="Beskrivning">Beskrivning</span></h4>
|
|
<p>Detta verktyg ritar en rektangel genom att välja två motsatta punkter.
|
|
</p><p><a href="https://www.freecadweb.org/wiki/index.php?title=File:Draft_Rectangle_example.jpg" class="image"><img alt="Draft Rectangle example.jpg" src="400px-Draft_Rectangle_example.jpg" width="400" height="228" srcset="/wiki/images/thumb/7/76/Draft_Rectangle_example.jpg/600px-Draft_Rectangle_example.jpg 1.5x, /wiki/images/7/76/Draft_Rectangle_example.jpg 2x" /></a>
|
|
</p>
|
|
<h4><span class="mw-headline" id="Bruk">Bruk</span></h4>
|
|
<ul><li> Markera punkter i ett tomt område i 3d vyn, eller på ett existerande objekt.</li>
|
|
<li> Nedtryckning av <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">CTRL</span> kommer att <a href="https://www.freecadweb.org/wiki/index.php?title=Draft_Snap/sv" title="Draft Snap/sv">snäppa</a> din punkt till tillgängliga snäpp-punkter.</li>
|
|
<li> Skriv in siffror för att <a href="https://www.freecadweb.org/wiki/index.php?title=Draft_Coordinates/sv" title="Draft Coordinates/sv">manuellt mata in en koordinat</a>.</li>
|
|
<li> Nedtryckning av <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">SKIFT</span> medan du väljer den motsatta punkten tillåter dig att begränsa den ortogonalt i relation till det ögonblick som du tryckte på <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">SKIFT</span>.</li>
|
|
<li> Om du trycker på <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">ESC</span> så avbryts funktionen.</li>
|
|
<li> Den skapade rektangeln kommer att ha nuvarande <a href="https://www.freecadweb.org/wiki/index.php?title=Draft_Linestyle/sv" title="Draft Linestyle/sv">linjestil</a>.</li>
|
|
<li> Rektanglar har en "Texturbild" egenskap som kan användas för att visa en bild som mappas på rektangeln. Du måste se till att ge rektangeln samma dimensioner som bilden. Om man tar bort innehållet i egenskapen så försvinner bilden från rektangeln. Detta är användbart om du behöver kalkera av en pappersritning som du har skannat in.</li></ul>
|
|
<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;">R</span> or click the checkbox to check/uncheck the <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"><b>Relative</b></span> button. If relative mode is on, the coordinates of the next point are relative to the last one. If not, they are absolute, taken from the (0,0,0) origin point.</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 Rectangle tool will restart after you finish or close it, allowing you to draw another one without pressing the Rectangle button again.</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 last one.</li>
|
|
<li> Press <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">I</span> or the <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"><b>Filled</b></span> button to have the rectangle filled with a face after it has been closed.</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 Line command.</li>
|
|
<li> Rectangles, when in "Flat Lines" display mode, can display a hatch pattern, by setting their "Pattern" property.</li></ul>
|
|
<h2><span class="mw-headline" id="Properties">Properties</span></h2>
|
|
<ul><li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>Length</b>: Specifies the length of the rectangle</li>
|
|
<li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>Width</b>: Specifies the width of the rectangle</li>
|
|
<li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>Chamfer Size</b>: Specifies the size of chamfered corners</li>
|
|
<li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>Fillet Radius</b>: Specifies a curvature radius to give to the corners of the rectangle</li>
|
|
<li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>Rows</b>: Allows to give horizontal subdivisions to this rectangle</li>
|
|
<li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>Columns</b>: Allows to give vertical subdivisions to this rectangle</li>
|
|
<li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>Make Face</b>: Fills the rectangle with a face</li>
|
|
<li> <span style="font-size: 0.6em;padding-right:10px;">VIEW</span><b>Texture Image</b>: Allows to give the path to an image file to be mapped on the rectangle. It is up to you to give the rectangle the same proportion as the image if you want to avoid distortions. Blanking this property will remove the image.</li>
|
|
<li> <span style="font-size: 0.6em;padding-right:10px;">VIEW</span><b>Pattern</b>: Specifies a hatch pattern to fill the wire with.</li>
|
|
<li> <span style="font-size: 0.6em;padding-right:10px;">VIEW</span><b>Pattern Size</b>: Specifies the size of the hatch pattern</li></ul>
|
|
<p>See also <a href="Draft_Pattern.html" title="Draft Pattern">Draft Pattern</a> page.
|
|
</p>
|
|
<h2><span class="mw-headline" id="Scripting">Scripting</span></h2>
|
|
<p>The Rectangle 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>makeRectangle (length, width, [placement], [facemode]) </pre>
|
|
<ul><li> Creates a Rectangle object with length in X direction and height in Y direction. </li>
|
|
<li> If a placement is given, it is used. </li>
|
|
<li> If facemode is False, the rectangle is shown as a wireframe, otherwise as a face. </li>
|
|
<li> The current Draft linewidth and color will be used. </li>
|
|
<li> Returns the newly created object.</li></ul>
|
|
<p>Example:
|
|
</p>
|
|
<pre>import FreeCAD,Draft
|
|
Draft.makeRectangle(10,4) </pre>
|
|
<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_Rectangle/sv&oldid=279556">http://www.freecadweb.org/wiki/index.php?title=Draft_Rectangle/sv&oldid=279556</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> |