TechDraw Annotation/fr: Difference between revisions

From FreeCAD Documentation
(Created page with "{{Caption|Modification de l'annotation via l'éditeur de propriétés}}")
(Created page with "<!-- Remarque des Éditeurs et des Traducteurs: ne changez pas les balises & values, elles sont utilisées pour échapper aux symboles et les montrer textuellement -->")
Line 34: Line 34:
{{Caption|Modification de l'annotation via l'éditeur de propriétés}}
{{Caption|Modification de l'annotation via l'éditeur de propriétés}}


<!-- Editor's and Traducer's note: do not change the &amp; values, they are used to escape the symbols and show them verbatim -->
<!-- Remarque des Éditeurs et des Traducteurs: ne changez pas les balises &amp; values, elles sont utilisées pour échapper aux symboles et les montrer textuellement -->


{{Emphasis|Note:}} some characters interfere with the internal representation of the Annotation text. Specifically, these are the double quote {{incode|"}}, less than {{incode|<}}, and greater than {{incode|>}} symbols; these must be replaced by HTML escape characters, {{incode|&amp;quot;}}, {{incode|&amp;lt;}}, and {{incode|&amp;gt;}} respectively. See [https://en.wikipedia.org/wiki/Character_encodings_in_HTML#HTML_character_references Character encodings in HTML] for details.
{{Emphasis|Note:}} some characters interfere with the internal representation of the Annotation text. Specifically, these are the double quote {{incode|"}}, less than {{incode|<}}, and greater than {{incode|>}} symbols; these must be replaced by HTML escape characters, {{incode|&amp;quot;}}, {{incode|&amp;lt;}}, and {{incode|&amp;gt;}} respectively. See [https://en.wikipedia.org/wiki/Character_encodings_in_HTML#HTML_character_references Character encodings in HTML] for details.

Revision as of 13:55, 4 April 2020

Other languages:

TechDraw Annotation

Emplacement du menu
TechDraw → Annotations → Insérer une annotation
Ateliers
TechDraw
Raccourci par défaut
Aucun
Introduit dans la version
-
Voir aussi
Draft Texte, Draft Formes à partir texte

Description

L'outil Annotation ajoute un bloc de texte à une page de dessin.

Annotation dans la page de dessin

Utilisation

  1. Si vous avez plusieurs pages de dessin dans votre document, vous devrez sélectionner la page souhaitée dans l'arborescence.
  2. Appuyez sur le bouton Insérer une annotation
  3. 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 vers la position souhaitée.
  4. Vous devrez peut-être appuyer sur Std Rafraîchir et/ou TechDraw Redessiner pour que votre texte change.

Modification de l'annotation via l'éditeur de propriétés


Note: some characters interfere with the internal representation of the Annotation text. Specifically, these are the double quote ", less than <, and greater than > symbols; these must be replaced by HTML escape characters, &quot;, &lt;, and &gt; respectively. See Character encodings in HTML for details.

Properties

The Annotation inherits all applicable basic View properties except DonnéesScale. Use the DonnéesTextSize property instead.

  • DonnéesText: The text to be displayed.
  • DonnéesFont: The name of the font to use. Annotation will use the best match of installed fonts.
  • DonnéesTextColor: The color of the text.
  • DonnéesTextSize: The size of the text in mm.
  • DonnéesMaxWidth: The maximum width of the Annotation block. -1 indicates no maximum width.
  • DonnéesLineSpace: Line spacing adjustment (%).
  • DonnéesTextStyle: "Normal", "Bold", "Italic", "Bold-Italic"

Scripting

See also: TechDraw API and FreeCAD Scripting Basics.

The New Annotation tool can be used in macros and from the Python console by using the following functions:

anno = FreeCAD.ActiveDocument.addObject('TechDraw::DrawViewAnnotation','TestAnno')
anno.Text = ['Different Text']
anno.TextStyle = 'Bold'
rc = page.addView(anno)

Notes