TechDraw NewAnnotation

From FreeCAD Documentation
Revision as of 02:10, 17 September 2019 by Vocx (talk | contribs) (Move the notes to the usage section, so they are prominent.)
Jump to navigation Jump to search
Other languages:
Deutsch • ‎English • ‎français • ‎italiano • ‎română • ‎русский
Arrow-left.svg Previous: TechDraw Tree Page Sync.svg Redraw
Next: LeaderLine Techdraw-mline.svg Arrow-right.svg

TechDraw NewAnnotation.png TechDraw NewAnnotation

Menu location
TechDraw → Annotation
Default shortcut
Introduced in version
See also
Draft Text, Draft ShapeString


The Annotation tool adds a text block to a drawing page.


Annotation in the drawing page

How to use

  1. If you have multiple drawing pages in your document, you will need to select the desired page in the tree.
  2. Press the TechDraw NewAnnotation.png 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 recompute View-rotate-right.png to get your text to change.


Modifying the annotation through the property editor

<--! Editor's note: do not change the & values, they are used to escape the symbols and show them verbatim --> 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.


  • DataText: The text to be displayed.
  • DataFont: The name of the font to use. Annotation will use the best match of installed fonts.
  • DataTextColor: The color of the text.
  • DataTextSize: The size of the text in mm.
  • DataMaxWidth: The maximum width of the Annotation block. -1 indicates no maximum width.
  • DataLineSpace: Line spacing adjustment (%).
  • DataTextStyle: "Normal", "Bold", "Italic", "Bold-Italic"

Note: Annotation inherits all applicable basic View properties except Scale. Use the TextSize property instead.


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)


Arrow-left.svg Previous: TechDraw Tree Page Sync.svg Redraw
Next: LeaderLine Techdraw-mline.svg Arrow-right.svg