TechDraw CosmeticVertex/ru: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
(Updating to match new version of source page)
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<languages/>
<languages/>


{{Docnav
{{Docnav/ru
|[[TechDraw_RichTextAnnotation|RichTextAnnotation]]
|[[TechDraw_RichTextAnnotation/ru|Вставка аннотаций форматированным текстом]]
|[[TechDraw_Midpoints|Midpoints]]
|[[TechDraw_Midpoints/ru|Добавить вершины по центрам граней]]
|[[TechDraw_Workbench|TechDraw]]
|[[TechDraw_Workbench/ru|Верстак "TechDraw"]]
|IconL=TechDraw_RichTextAnnotation.svg
|IconL=TechDraw_RichTextAnnotation.svg
|IconR=TechDraw_Midpoints.svg
|IconR=TechDraw_Midpoints.svg
Line 10: Line 10:
}}
}}


{{GuiCommand
{{GuiCommand/ru
|Name/ru=Добавить вспомогательную вершину
|Name=TechDraw CosmeticVertex
|Name=TechDraw_CosmeticVertex
|MenuLocation=TechDraw → Add Vertices → Add Cosmetic Vertex
|MenuLocation=TechDraw → Добавить Вершины → Добавить вспомогательную вершину
|Workbenches=[[TechDraw_Workbench|TechDraw]]
|Workbenches=[[TechDraw_Workbench/ru|TechDraw]]
|Version=0.19
|Version=0.19
|SeeAlso=[[TechDraw_Midpoints|TechDraw Midpoint]], [[TechDraw_Quadrants|TechDraw Quadrant]]
|SeeAlso=[[TechDraw_Midpoints/ru|Добавить вершины по центрам граней]], [[TechDraw_Quadrants/ru|Добавить 4-ре вершины по краям окружности]]
}}
}}


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


The Cosmetic Vertex tool adds a [[Glossary#V|Vertex]], which is not part of the source geometry, to a View. This Vertex behaves like any other vertex and can be used for dimensioning.
The '''TechDraw CosmeticVertex''' tool adds a [[Glossary#V|vertex]], which is not part of the source geometry, to a view. This vertex behaves like any other vertex and can be used for dimensioning.


[[Image:TechDraw_CosmeticVertex_Sample.png|300px]]
[[Image:TechDraw_CosmeticVertex_Sample.png|300px]]
{{Caption|Cosmetic Vertex used to create an otherwise impossible Dimension}}
{{Caption|Cosmetic vertices used to create an otherwise impossible dimension}}


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


# Select a view in the drawing.
# Select a view.
# There are several ways to invoke the tool:
# Press the {{Button|[[Image:TechDraw_CosmeticVertex.svg|16px]] Add Cosmetic Vertex}} button
#* Press the {{Button|[[Image:TechDraw_CosmeticVertex.svg|16px]] [[TechDraw_CosmeticVertex|Add Cosmetic Vertex]]}} button.
# A task dialog will open. It allows to set location of the Cosmetic Vertex either by picking a point or by entering an x,y-offset from the center of the selected view.
#* Select the {{MenuCommand|TechDraw → Add Vertices → [[Image:TechDraw_CosmeticVertex.svg|16px]] Add Cosmetic Vertex}} option from the menu.
# To pick a position, press the button {{Button|Point Picker}}. Click to a position in the view and subsequently press {{Button|OK}} to create the point. To exit the point picking without creating a Cosmetic Vertex, press the {{Button|Escape picking}} button in the dialog.
# A task panel opens.
# Optionally press the {{Button|Point Picker}} button and pick a point on the page. Press the {{Button|Escape picking}} button to cancel this operation.
# Optionally change or specify the X and Y coordinates of the point. The coordinates are relative to the center of the view.
# Press the {{Button|OK}} button.


==Notes==
To delete a Cosmetic Vertex, select it and use the toolbar button {{Button|[[Image:TechDraw_CosmeticEraser.svg|16px]] [[TechDraw_CosmeticEraser|Remove Cosmetic Object]]}}.


'''Note:''' You cannot change the location of the Cosmetic Vertex after it has been created. At the moment there is no other way than to delete it and creating a new one.
* You cannot change the position of an existing cosmetic vertex. At the moment there is no other way than to delete it and create a new one.


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


Cosmetic Vertices have no properties of their own, as they are no document objects. They share color and size settings with regular geometry vertices.
Cosmetic vertices have no properties of their own, as they are not document objects. They share color and size settings with regular geometry vertices.


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


{{Emphasis|See also:}} [[TechDraw_API|TechDraw API]] and [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]].
{{Emphasis|См. так же:}} [[TechDraw_API/ru|TechDraw API]] и [[FreeCAD_Scripting_Basics/ru|Основы составления скриптов FreeCAD]].


Cosmetic Vertices are available to [[Macros|macros]] or the [[Python|Python]] console.
Cosmetic vertices are available to [[Macros|macros]] or the [[Python|Python]] console.


{{Code|code=
{{Code|code=
Line 61: Line 70:




{{Docnav
{{Docnav/ru
|[[TechDraw_RichTextAnnotation|RichTextAnnotation]]
|[[TechDraw_RichTextAnnotation/ru|Вставка аннотаций форматированным текстом]]
|[[TechDraw_Midpoints|Midpoints]]
|[[TechDraw_Midpoints/ru|Добавить вершины по центрам граней]]
|[[TechDraw_Workbench|TechDraw]]
|[[TechDraw_Workbench/ru|Верстак "TechDraw"]]
|IconL=TechDraw_RichTextAnnotation.svg
|IconL=TechDraw_RichTextAnnotation.svg
|IconR=TechDraw_Midpoints.svg
|IconR=TechDraw_Midpoints.svg

Latest revision as of 08:18, 3 April 2024

Other languages:

Добавить вспомогательную вершину

Системное название
TechDraw_CosmeticVertex
Расположение в меню
TechDraw → Добавить Вершины → Добавить вспомогательную вершину
Верстаки
TechDraw
Быстрые клавиши
Нет
Представлено в версии
0.19
См. также
Добавить вершины по центрам граней, Добавить 4-ре вершины по краям окружности

Описание

The TechDraw CosmeticVertex tool adds a vertex, which is not part of the source geometry, to a view. This vertex behaves like any other vertex and can be used for dimensioning.

Cosmetic vertices used to create an otherwise impossible dimension

Применение

  1. Select a view.
  2. There are several ways to invoke the tool:
    • Press the Add Cosmetic Vertex button.
    • Select the TechDraw → Add Vertices → Add Cosmetic Vertex option from the menu.
  3. A task panel opens.
  4. Optionally press the Point Picker button and pick a point on the page. Press the Escape picking button to cancel this operation.
  5. Optionally change or specify the X and Y coordinates of the point. The coordinates are relative to the center of the view.
  6. Press the OK button.

Notes

  • You cannot change the position of an existing cosmetic vertex. At the moment there is no other way than to delete it and create a new one.

Свойства

Cosmetic vertices have no properties of their own, as they are not document objects. They share color and size settings with regular geometry vertices.

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

См. так же: TechDraw API и Основы составления скриптов FreeCAD.

Cosmetic vertices are available to macros or the Python console.

dvp = App.ActiveDocument.View
org = App.Vector(0.0, 0.0, 0.0)
dvp.makeCosmeticVertex(org);

#lines too!
start = FreeCAD.Vector (1.0, 5.0, 0.0)
end = FreeCAD.Vector(1.0, -5.0, 0.0)
style = 2
weight = 0.75
pyGreen = (0.0, 0.0, 1.0, 0.0)
dvp.makeCosmeticLine(start,end,style, weight, pyGreen)