Jump to content

TechDraw "Вставить заметку"

From FreeCAD Documentation
This page is a translated version of the page TechDraw Annotation and the translation is 33% complete.
Outdated translations are marked like this.

Вставить заметку

Расположение в меню
TechDraw → Заметки → Вставить заметку
Верстаки
TechDraw
Быстрые клавиши
Нет
Представлено в версии
-
См. также
Текст, Фигура из текста

Описание

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

Annotation in the drawing page

Применение

  1. If there are multiple drawing pages in the document: optionally activate the desired page by selecting it in the Tree View.
  2. There are several ways to invoke the tool:
    • Press the Text Annotation button.
    • Select the TechDraw → Annotations → Text Annotation option from the menu.
  3. If there are multiple drawing pages in the document and you have not yet activated a page, the Page Chooser dialog box opens:
    1. Select the desired page.
    2. Press the OK button.
  4. A text block containing Default Text appears on the page.
  5. Use the Property View to change the text.
  6. Optionally drag the Annotation to the different position.

Modifying the annotation through the Property View

Примечания

  • 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.

Свойства

The Annotation inherits all applicable basic View properties except ДанныеScale. Use the ДанныеText Size property instead.

  • ДанныеText: The text to be displayed.
  • ДанныеFont: The name of the font to use. Annotation will use the best match of installed fonts.
  • ДанныеText Color: The color of the text.
  • ДанныеText Size: The size of the text in mm.
  • ДанныеMax Width: The maximum width of the Annotation block. -1 indicates no maximum width.
  • ДанныеLine Space: Line spacing adjustment (%).
  • ДанныеText Style: "Normal", "Bold", "Italic", "Bold-Italic"

Программирование

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)