104 lines
7.3 KiB
HTML
104 lines
7.3 KiB
HTML
<html><head><title>TechDraw NewAnnotation/fr</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/fr</h1></div>
|
|
|
|
<div id="mw-content-text" lang="fr" 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="Annotation"><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> Annotation</span></h3>
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">Emplacement du menu
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven">TechDraw → Annotation
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">Ateliers
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven"><a href="https://www.freecadweb.org/wiki/index.php?title=TechDraw_Module/fr" title="TechDraw Module/fr">TechDraw</a>
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">Raccourci par défaut
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven">
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">Voir aussi
|
|
</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="#Annotation"><span class="tocnumber">1</span> <span class="toctext">Annotation</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="#Comment_faire"><span class="tocnumber">3</span> <span class="toctext">Comment faire</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="#Propri.C3.A9t.C3.A9s"><span class="tocnumber">5</span> <span class="toctext">Propriétés</span></a></li>
|
|
<li class="toclevel-1 tocsection-5"><a href="#Script"><span class="tocnumber">6</span> <span class="toctext">Script</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>L'outil Annotation ajoute un bloc de texte à une page de dessin.
|
|
</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="Comment_faire">Comment faire</span></h2>
|
|
<ol><li> Si vous avez plusieurs pages de dessin dans votre document, vous devez sélectionner la page souhaitée dans l'arborescence.</li>
|
|
<li> Appuyez sur le bouton <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></li>
|
|
<li> Un bloc de texte contenant "Texte par défaut" apparaîtra sur la page. Utilisez l'éditeur de propriétés pour modifier le texte. Faites glisser l'annotation à la position requise.</li>
|
|
<li> Vous devrez peut-être appuyer sur recalculer <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> pour que votre texte 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>Aucune.
|
|
</p>
|
|
<h2><span class="mw-headline" id="Propri.C3.A9t.C3.A9s">Propriétés</span></h2>
|
|
<pre>ADD_PROPERTY_TYPE(Text ,("Default Text"),vgroup,App::Prop_None,"Le texte qui doit être affiché");
|
|
ADD_PROPERTY_TYPE(Font ,(fontName.c_str()),vgroup,App::Prop_None, "Le nom de la police à utiliser");
|
|
ADD_PROPERTY_TYPE(TextColor,(0.0f,0.0f,0.0f),vgroup,App::Prop_None,"La couleur du texte");
|
|
ADD_PROPERTY_TYPE(TextSize,(8),vgroup,App::Prop_None,"La taille du texte en mm");
|
|
ADD_PROPERTY_TYPE(MaxWidth,(-1.0),vgroup,App::Prop_None,"La largeur maximale du bloc d'annotation");
|
|
ADD_PROPERTY_TYPE(LineSpace,(80),vgroup,App::Prop_None,"Ajustement d'interligne");
|
|
TextStyle.setEnums(TextStyleEnums);
|
|
ADD_PROPERTY(TextStyle, ((long)0));
|
|
</pre>
|
|
<ul><li> <span style="font-size: 0.6em;padding-right:10px;">DONNÉES</span><b>Text</b>: Le texte à afficher.</li>
|
|
<li> <span style="font-size: 0.6em;padding-right:10px;">DONNÉES</span><b>Font</b>: Le nom de la police à utiliser. L'annotation utilisera la meilleure correspondance des polices installées.</li>
|
|
<li> <span style="font-size: 0.6em;padding-right:10px;">DONNÉES</span><b>TextColor</b>: La couleur du texte </li>
|
|
<li> <span style="font-size: 0.6em;padding-right:10px;">DONNÉES</span><b>TextSize</b>: La taille du texte en mm.</li>
|
|
<li> <span style="font-size: 0.6em;padding-right:10px;">DONNÉES</span><b>MaxWidth</b>: La largeur maximale du bloc d'annotation. -1 indique pas de largeur maximale.</li>
|
|
<li> <span style="font-size: 0.6em;padding-right:10px;">DONNÉES</span><b>LineSpace</b>: Ajustement d'interligne (%).</li>
|
|
<li> <span style="font-size: 0.6em;padding-right:10px;">DONNÉES</span><b>TextStylee</b>: "Normal", "Gras", "Italique", "Gras-Italique"</li></ul>
|
|
<p>Remarque: L'annotation hérite de toutes les propriétés de vue de base applicables, à l'exception de l'échelle. Utilisez la propriété TextSize à la place.
|
|
</p>
|
|
<h2><span class="mw-headline" id="Script">Script</span></h2>
|
|
<p>Les annotations peuvent être ajoutées à Pages en utilisant le code 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> Aucune pour le moment. </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/fr&oldid=258598">http://www.freecadweb.org/wiki/index.php?title=TechDraw_NewAnnotation/fr&oldid=258598</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> |