TechDraw Annotation/fr: Difference between revisions

From FreeCAD Documentation
(Created page with "L'outil Annotation ajoute un bloc de texte à une page de dessin.")
(Created page with "250px {{Caption|Annotation dans la page de dessin}}")
Line 22: Line 22:


[[Image:AnnotationSample.png|250px]]
[[Image:AnnotationSample.png|250px]]
{{Caption|Annotation in the drawing page}}
{{Caption|Annotation dans la page de dessin}}


==Usage==
==Usage==

Revision as of 13:49, 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

Usage

  1. If you have multiple drawing pages in your document, you will need to select the desired page in the tree.
  2. Press the Insert Annotation button
  3. 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.
  4. You may need to press Refresh and/or Redraw Page to get your text to change.

Modifying the annotation through the property editor


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