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

104 lines
7.2 KiB
HTML

<html><head><title>TechDraw NewAnnotation/ru</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 NewAnnotation/ru</h1></div>
<div id="mw-content-text" lang="ru" 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="TechDraw_NewAnnotation"><a href="https://www.freecadweb.org/wiki/index.php?title=File:TechDraw_NewAnnotation.png" class="image"><img alt="TechDraw NewAnnotation.png" src="32px-TechDraw_NewAnnotation.png" width="32" height="32" srcset="/wiki/images/thumb/7/74/TechDraw_NewAnnotation.png/48px-TechDraw_NewAnnotation.png 1.5x, /wiki/images/7/74/TechDraw_NewAnnotation.png 2x" /></a> TechDraw NewAnnotation</span></h3>
</td></tr>
<tr>
<th class="ctOdd">Расположение в меню
</th></tr>
<tr>
<td class="ctEven">TechDraw → Annotation
</td></tr>
<tr>
<th class="ctOdd">Верстаки
</th></tr>
<tr>
<td class="ctEven"><a href="https://www.freecadweb.org/wiki/index.php?title=TechDraw_Module/ru" title="TechDraw Module/ru">TechDraw</a>
</td></tr>
<tr>
<th class="ctOdd">Быстрые клавиши
</th></tr>
<tr>
<td class="ctEven">
</td></tr>
<tr>
<th class="ctOdd">См. также
</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_NewAnnotation.html"><span class="tocnumber">1</span> <span class="toctext">TechDraw NewAnnotation</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 Annotation tool adds a text block to a drawing page.
</p>
<div class="center"><div class="floatnone"><a href="https://www.freecadweb.org/wiki/index.php?title=File:AnnotationSample.png" class="image"><img alt="AnnotationSample.png" src="200px-AnnotationSample.png" width="200" height="84" srcset="/wiki/images/7/7b/AnnotationSample.png 1.5x" /></a></div></div>
<h2><span class="mw-headline" id="How_to_use">How to use</span></h2>
<ol><li> If you have multiple drawing pages in your document, you will 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_NewAnnotation.png" class="image"><img alt="TechDraw NewAnnotation.png" src="24px-TechDraw_NewAnnotation.png" width="24" height="24" srcset="/wiki/images/thumb/7/74/TechDraw_NewAnnotation.png/36px-TechDraw_NewAnnotation.png 1.5x, /wiki/images/thumb/7/74/TechDraw_NewAnnotation.png/48px-TechDraw_NewAnnotation.png 2x" /></a> <a href="TechDraw_NewAnnotation.html" title="TechDraw NewAnnotation">Annotation</a></span> button</li>
<li> A text block containing "Default Text" will appear on the page. Use the property editor to change the text. Drag the Annotation to the required position.</li>
<li> You may need to press recompute <a href="https://www.freecadweb.org/wiki/index.php?title=File:View-rotate-right.png" class="image"><img alt="View-rotate-right.png" src="32px-View-rotate-right.png" width="32" height="32" srcset="/wiki/images/thumb/5/5d/View-rotate-right.png/48px-View-rotate-right.png 1.5x, /wiki/images/5/5d/View-rotate-right.png 2x" /></a> to get your text to change.</li></ol>
<div class="center"><div class="floatnone"><a href="https://www.freecadweb.org/wiki/index.php?title=File:UpdateAnnotation.png" class="image"><img alt="UpdateAnnotation.png" src="300px-UpdateAnnotation.png" width="300" height="205" srcset="/wiki/images/c/cc/UpdateAnnotation.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>
<pre>ADD_PROPERTY_TYPE(Text ,("Default Text"),vgroup,App::Prop_None,"The text to be displayed");
ADD_PROPERTY_TYPE(Font ,(fontName.c_str()),vgroup,App::Prop_None, "The name of the font to use");
ADD_PROPERTY_TYPE(TextColor,(0.0f,0.0f,0.0f),vgroup,App::Prop_None,"The color of the text");
ADD_PROPERTY_TYPE(TextSize,(8),vgroup,App::Prop_None,"The size of the text in mm");
ADD_PROPERTY_TYPE(MaxWidth,(-1.0),vgroup,App::Prop_None,"The maximum width of the Annotation block");
ADD_PROPERTY_TYPE(LineSpace,(80),vgroup,App::Prop_None,"Line spacing adjustment");
TextStyle.setEnums(TextStyleEnums);
ADD_PROPERTY(TextStyle, ((long)0));
</pre>
<ul><li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>Text</b>: The text to be displayed.</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>Font</b>: The name of the font to use. Annotation will use the best match of installed fonts.</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>TextColor</b>: The color of the text. </li>
<li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>TextSize</b>: The size of the text in mm. </li>
<li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>MaxWidth</b>: The maximum width of the Annotation block. -1 indicates no maximum width. </li>
<li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>LineSpace</b>: Line spacing adjustment (%).</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>TextStylee</b>: "Normal", "Bold", "Italic", "Bold-Italic"</li></ul>
<p>Note: Annotation inherits all applicable basic View properties except Scale. Use the TextSize property instead.
</p>
<h2><span class="mw-headline" id="Scripting">Scripting</span></h2>
<p>Annotations can be added to Pages using Python.
</p>
<pre>anno = FreeCAD.ActiveDocument.addObject('TechDraw::DrawViewAnnotation','TestAnno')
anno.Text = ['Different Text']
anno.TextStyle = 'Bold'
rc = page.addView(anno) </pre>
<h2><span class="mw-headline" id="Notes">Notes</span></h2>
<ul><li> None at this time </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_NewAnnotation/ru&amp;oldid=213591">http://www.freecadweb.org/wiki/index.php?title=TechDraw_NewAnnotation/ru&amp;oldid=213591</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>