FreeCAD-Doc/localwiki/Draft_Text-sv.html
2018-07-19 18:47:02 -05:00

107 lines
8.5 KiB
HTML

<html><head><title>Draft Text/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 Text/sv</h1></div>
<div id="mw-content-text" lang="sv" dir="ltr" class="mw-content-ltr"><hr/><div class="mw-parser-output"><table class="fcinfobox wikitable ct" >
<tr>
<td class="ctTitle">
<h3><span class="mw-headline" id=".7B.7B.7BName.2Fsv.7D.7D.7D"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Draft_Text.png" class="image"><img alt="Draft Text.png" src="32px-Draft_Text.png" width="32" height="32" srcset="/wiki/images/thumb/9/9f/Draft_Text.png/48px-Draft_Text.png 1.5x, /wiki/images/9/9f/Draft_Text.png 2x" /></a> {{{Name/sv}}}</span></h3>
</td></tr>
<tr>
<th class="ctOdd">Menyplacering
</th></tr>
<tr>
<td class="ctEven">Draft → Text
</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">Skiss</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">T E
</td></tr>
<tr>
<th class="ctOdd">Se även
</th></tr>
<tr>
<td class="ctEven">None
</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="#.7B.7B.7BName.2Fsv.7D.7D.7D"><span class="tocnumber">1</span> <span class="toctext">{{{Name/sv}}}</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>
<h4><span class="mw-headline" id="Beskrivning">Beskrivning</span></h4>
<p>Detta verktyg ber användaren om en placeringspunkt, sedan kan text matas in i en textlåda.
</p><p><a href="https://www.freecadweb.org/wiki/index.php?title=File:Draft_Text_example.jpg" class="image"><img alt="Draft Text example.jpg" src="400px-Draft_Text_example.jpg" width="400" height="214" srcset="/wiki/images/thumb/4/4f/Draft_Text_example.jpg/600px-Draft_Text_example.jpg 1.5x, /wiki/images/4/4f/Draft_Text_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> 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 texten 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> När du redigerar texten, så kommer en nedtryckning av <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">ENTER</span> eller <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">NEDPIL</span> tillåta dig redigera en ne textrad.</li>
<li> Nedtryckning av <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">UPPIL</span> tillåter dig att redigera föregående textrad.</li>
<li> Nedtryckning av <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">ENTER</span> <b>tå gånger</b> (d.v.s. lämna den sista raden tom) adderar texten till dokumentet och stänger redigeraren.</li></ul>
<h2><span class="mw-headline" id="Options">Options</span></h2>
<ul><li> Pressing <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">CTRL</span> will <a href="Draft_Snap.html" title="Draft Snap">snap</a> your point to available snap locations.</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> Pressing <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">ESC</span> will cancel the operation.</li>
<li> When editing the text, pressing <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">ENTER</span> or <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">DOWN ARROW</span> allow you to enter or edit a next line of text.</li>
<li> Pressing <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">UP ARROW</span> allows you to edit a previous line of text.</li>
<li> Pressing <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">ENTER</span> <b>twice</b> (thus leaving the last line empty) adds the text to the document and closes the editor.</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>Position</b>: The base point of the text block</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>Label Text</b>: The contents of the text block</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">VIEW</span><b>Display Mode</b>: Specifies if the text is aligned to the scene axes or always faces the camera</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">VIEW</span><b>Font Size</b>: The size of the letters</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">VIEW</span><b>Justification</b>: Specifies if the text is aligned to the left, right or center of the base point.</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">VIEW</span><b>Line Spacing</b>: Specifies the space between lines of text</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">VIEW</span><b>Rotation</b>: Specifies a rotation to be applied to the text</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">VIEW</span><b>Rotation Axis</b>: Specifies the axis to use for the rotation</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">VIEW</span><b>Font Name</b>: The font to use to draw the text. It can be a font name, such as "Arial", a default style such as "sans", "serif" or "mono", or a family such as "Arial,Helvetica,sans" or a name with a style such as "Arial:Bold". If the given font is not found on the system, a generic one is used instead.</li></ul>
<h2><span class="mw-headline" id="Scripting">Scripting</span></h2>
<p>The Text 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>makeText (string or list, [Vector], [screenmode]) </pre>
<ul><li> Creates a Text object, at the given point if a vector is provided, containing the string or the strings given in the list, one string by line.</li>
<li> The current Draft color and text height and font specified in preferences are used. </li>
<li> If screenmode is True, the text always faces the view direction, otherwise it lies on the XY plane. </li>
<li> Returns the newly created object.</li></ul>
<p>Example:
</p>
<pre>import FreeCAD,Draft
Draft.makeText("This is a sample text",FreeCAD.Vector(1,1,0)) </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_Text/sv&amp;oldid=140131">http://www.freecadweb.org/wiki/index.php?title=Draft_Text/sv&amp;oldid=140131</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>