|
|
| Menu location |
|---|
| TechDraw → Annotations → Text Annotation |
| Workbenches |
| TechDraw |
| Default shortcut |
| None |
| Introduced in version |
| - |
| See also |
| TechDraw RichTextAnnotation |
Description
The TechDraw Annotation tool adds a text block to a drawing page.
Annotation in the drawing page
Usage
- If there are multiple drawing pages in the document: optionally activate the desired page by selecting it in the Tree View.
- There are several ways to invoke the tool:
- Press the
Text Annotation button.
- Select the TechDraw → Annotations →
Text Annotation option from the menu.
- Press the
- If there are multiple drawing pages in the document and you have not yet activated a page, the Page Chooser dialog box opens:
- Select the desired page.
- Press the OK button.
- A text block containing Default Text appears on the page.
- Use the Property View to change the text.
- Optionally drag the Annotation to the different position.
Modifying the annotation through the Property View
Notes
- 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,",<, and>respectively. See Character encodings in HTML for details.
Properties
The Annotation inherits all applicable basic View properties except DataScale. Use the DataText Size property instead.
- DataText: The text to be displayed.
- DataFont: The name of the font to use. Annotation will use the best match of installed fonts.
- DataText Color: The color of the text.
- DataText Size: The size of the text in mm.
- DataMax Width: The maximum width of the Annotation block. -1 indicates no maximum width.
- DataLine Space: Line spacing adjustment (%).
- DataText Style: "Normal", "Bold", "Italic", "Bold-Italic"
Scripting
See also: Autogenerated API documentation 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)
This page is retrieved from https://wiki.freecad.org/TechDraw_Annotation