TechDraw Annotation/ru: Difference between revisions

From FreeCAD Documentation
(Created page with "==Свойства==")
(Updating to match new version of source page)
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<languages/>
<languages/>


<div class="mw-translate-fuzzy">
{{Docnav
{{Docnav/ru
|[[TechDraw_ToggleFrame|ToggleFrame]]
|[[TechDraw_ToggleFrame/ru|Отображение рамки вкл/выкл]]
|[[TechDraw_LeaderLine|LeaderLine]]
|[[TechDraw_LeaderLine/ru|Добавить Линию-выноску в Вид]]
|[[TechDraw_Module|TechDraw]]
|[[TechDraw_Workbench/ru|Верстак "TechDraw"]]
|IconL=TechDraw_ToggleFrame.svg
|IconL=TechDraw_ToggleFrame.svg
|IconR=TechDraw_LeaderLine.svg
|IconR=TechDraw_LeaderLine.svg
|IconC=Workbench_TechDraw.svg
|IconC=Workbench_TechDraw.svg
}}
}}
</div>


{{GuiCommand
{{GuiCommand/ru
|Name/ru=Вставить заметку
|Name=TechDraw Annotation
|Name=TechDraw_Annotation
|MenuLocation=TechDraw → AnnotationsInsert Annotation
|MenuLocation=TechDraw → ЗаметкиВставить заметку
|Workbenches=[[TechDraw_Module|TechDraw]]
|Workbenches=[[TechDraw_Workbench/ru|TechDraw]]
|SeeAlso=[[Draft_Text|Draft Text]], [[Draft_ShapeString|Draft ShapeString]]
|SeeAlso=[[Draft_Text/ru|Текст]], [[Draft_ShapeString/ru|Фигура из текста]]
}}
}}


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


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


{{Emphasis|See also:}} [[TechDraw_API|TechDraw API]] and [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]].
{{Emphasis|See also:}} [[TechDraw_API|TechDraw API]] and [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]].
Line 63: Line 66:
}}
}}


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




<div class="mw-translate-fuzzy">
{{Docnav
{{Docnav/ru
|[[TechDraw_ToggleFrame|ToggleFrame]]
|[[TechDraw_ToggleFrame/ru|Отображение рамки вкл/выкл]]
|[[TechDraw_LeaderLine|LeaderLine]]
|[[TechDraw_LeaderLine/ru|Добавить Линию-выноску в Вид]]
|[[TechDraw_Module|TechDraw]]
|[[TechDraw_Workbench/ru|Верстак "TechDraw"]]
|IconL=TechDraw_ToggleFrame.svg
|IconL=TechDraw_ToggleFrame.svg
|IconR=TechDraw_LeaderLine.svg
|IconR=TechDraw_LeaderLine.svg
|IconC=Workbench_TechDraw.svg
|IconC=Workbench_TechDraw.svg
}}
}}
</div>


{{TechDraw Tools navi{{#translation:}}}}
{{TechDraw Tools navi{{#translation:}}}}

Revision as of 17:40, 30 November 2021

Other languages:

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

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

Описание

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

Annotation in the drawing page

Применение

  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.

Свойства

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: 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)

Примечания