TechDraw Annotation/ru: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
(Updating to match new version of source page)
 
(2 intermediate revisions by the same user not shown)
Line 12: Line 12:
</div>
</div>


<div class="mw-translate-fuzzy">
{{GuiCommand/ru
{{GuiCommand/ru
|Name/ru=Вставить заметку
|Name/ru=Вставить заметку
Line 19: Line 20:
|SeeAlso=[[Draft_Text/ru|Текст]], [[Draft_ShapeString/ru|Фигура из текста]]
|SeeAlso=[[Draft_Text/ru|Текст]], [[Draft_ShapeString/ru|Фигура из текста]]
}}
}}
</div>


<span id="Description"></span>
==Описание==
==Описание==


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


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


<span id="Usage"></span>
==Применение==
==Применение==


# If you have multiple drawing pages in your document, you will need to select the desired page in the tree.
# If there are multiple drawing pages in the document: optionally activate the desired page by selecting it in the [[Tree_view|Tree view]].
# There are several ways to invoke the tool:
# Press the {{KEY|[[Image:TechDraw_Annotation.svg|24px]] [[TechDraw_Annotation|Insert Annotation]]}} button
#* Press the {{Button|[[Image:TechDraw_Annotation.svg|16px]] [[TechDraw_Annotation|Insert Annotation]]}} button.
# 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.
#* Select the {{MenuCommand|TechDraw → Annotations → [[Image:TechDraw_Annotation.svg|16px]] Insert Annotation}} option from the menu.
# You may need to press {{Button|[[Image:Std_Refresh.svg|16px]] [[Std_Refresh|Refresh]]}} and/or {{Button|[[Image:TechDraw RedrawPage.svg|16px]] [[TechDraw_RedrawPage|Redraw Page]]}} to get your text to change.
# If there are multiple drawing pages in the document and you have not yet activated a page, the {{MenuCommand|Page Chooser}} dialog box opens: {{Version|0.20}}
## Select the desired page.
## Press the {{Button|OK}} button.
# A text block containing ''Default Text'' appears on the page.
# Use the [[Property_editor|Property editor]] to change the text.
# Optionally drag the Annotation to the different position.


[[File:UpdateAnnotation.png]]
[[File:UpdateAnnotation.png]]
{{Caption|Modifying the annotation through the property editor}}
{{Caption|Modifying the annotation through the Property editor}}


<span id="Notes"></span>
<!-- Editor's and Traducer's note: do not change the &amp; values, they are used to escape the symbols and show them verbatim -->
==Примечания==


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


<span id="Properties"></span>
==Свойства==
==Свойства==


Line 53: Line 66:
* {{PropertyData|TextStyle}}: "Normal", "Bold", "Italic", "Bold-Italic"
* {{PropertyData|TextStyle}}: "Normal", "Bold", "Italic", "Bold-Italic"


<span id="Scripting"></span>
==Программирование==
==Программирование==


Line 65: Line 79:
rc = page.addView(anno)
rc = page.addView(anno)
}}
}}

==Примечания==




Line 82: Line 94:
{{TechDraw Tools navi{{#translation:}}}}
{{TechDraw Tools navi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{clear}}

Latest revision as of 10:09, 26 July 2023

Other languages:

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

Системное название
TechDraw_Annotation
Расположение в меню
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 Insert Annotation button.
    • Select the TechDraw → Annotations → Insert 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: introduced in version 0.20
    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 editor to change the text.
  6. Optionally drag the Annotation to the different position.

Modifying the annotation through the Property editor

Примечания

  • 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 ДанныеTextSize 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.
  • ДанныеTextColor: The color of the text.
  • ДанныеTextSize: The size of the text in mm.
  • ДанныеMaxWidth: The maximum width of the Annotation block. -1 indicates no maximum width.
  • ДанныеLineSpace: Line spacing adjustment (%).
  • ДанныеTextStyle: "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)