TechDraw CosmeticVertex: Difference between revisions

From FreeCAD Documentation
m ([[ | ]])
No edit summary
 
(29 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<languages/>
<languages/>
<translate>
<translate>

<!--T:16-->
<!--T:16-->
{{Docnav
{{Docnav
|[[TechDraw_RichTextAnnotation|RichTextAnnotation]]
|[[TechDraw_RichTextBlock|RichTextBlock]]
|[[TechDraw_Midpoints|Midpoints]]
|[[TechDraw_Midpoints|Midpoints]]
|[[TechDraw_Module|TechDraw]]
|[[TechDraw_Workbench|TechDraw]]
|IconL=Techdraw-textleader.svg
|IconL=TechDraw_RichTextAnnotation.svg
|IconR=TechDraw_Midpoints.svg
|IconC=Workbench_TechDraw.svg
|IconC=Workbench_TechDraw.svg
|IconR=Techdraw-midpoint.svg
}}
}}


Line 14: Line 15:
{{GuiCommand
{{GuiCommand
|Name=TechDraw CosmeticVertex
|Name=TechDraw CosmeticVertex
|MenuLocation=TechDraw → Add Vertices → Add Cosmetic Vertex
|Icon=techdraw-point.svg
|Workbenches=[[TechDraw_Workbench|TechDraw]]
|MenuLocation=TechDraw → CosmeticVertex
|Workbenches=[[TechDraw Module|TechDraw]]
|SeeAlso=[[TechDraw Midpoints]], [[TechDraw Quadrant]]
|Version=0.19
|Version=0.19
|SeeAlso=[[TechDraw_Midpoints|TechDraw Midpoint]], [[TechDraw_Quadrants|TechDraw Quadrant]]
}}
}}


Line 24: Line 24:


<!--T:8-->
<!--T:8-->
The Cosmetic Vertex 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.
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.


</translate>
</translate>
[[Image:TechDraw_CosmeticVertex_Sample.png]]
[[Image:TechDraw_CosmeticVertex_Sample.png|300px]]
<translate>
<translate>
<!--T:9-->
<!--T:9-->
{{Caption|Cosmetic Vertex used to create an otherwise impossible Dimension}}
{{Caption|Cosmetic vertices used to create an otherwise impossible dimension}}


==How to use== <!--T:3-->
==Usage== <!--T:3-->


<!--T:10-->
<!--T:10-->
# Select a view.
# Press the {{Button|[[Image:techdraw-mline.svg|16px]] [[TechDraw CosmeticVertex|CosmeticVertex]]}} button
# There are several ways to invoke the tool:
# A Task dialog will open. The dialog allows selection of the location of the Cosmetic Vertex though the use of a "point picker" or by entering coordinates. The coordinates are the position within the View relative to the View center.
#* Press the {{Button|[[Image:TechDraw_CosmeticVertex.svg|16px]] [[TechDraw_CosmeticVertex|Add Cosmetic Vertex]]}} button.
# The Pick points button starts a "point picker". Once a location is selected a small circle will appear. The Cosmetic Vertex will be added once the "OK" button is pressed.
#* Select the {{MenuCommand|TechDraw → Add Vertices → [[Image:TechDraw_CosmeticVertex.svg|16px]] Add Cosmetic Vertex}} option from the menu.
# To exit the "point picker" without creating a Cosmetic Vertex, press the "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== <!--T:24-->

<!--T:25-->
* 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.


==Properties== <!--T:19-->
==Properties== <!--T:19-->


<!--T:20-->
<!--T:20-->
Cosmetic Vertices have no properties of their own, as they are not 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== <!--T:6-->
==Scripting== <!--T:6-->


<!--T:12-->
<!--T:12-->
{{Emphasis|See also:}} [[TechDraw API|TechDraw API]] and [[FreeCAD Scripting Basics|FreeCAD Scripting Basics]].
See also: [https://freecad.github.io/SourceDoc/ Autogenerated API documentation] and [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]].


<!--T:13-->
<!--T:13-->
Cosmetic Vertices are available to [[macros|macros]] or the [[Python|Python]] console.
Cosmetic vertices are available to [[Macros|macros]] or the [[Python|Python]] console.


</translate>
</translate>
Line 68: Line 76:
dvp.makeCosmeticLine(start,end,style, weight, pyGreen)
dvp.makeCosmeticLine(start,end,style, weight, pyGreen)
}}
}}

<translate>
<translate>



<!--T:17-->
<!--T:17-->
{{Docnav
{{Docnav
|[[TechDraw_RichTextAnnotation|RichTextAnnotation]]
|[[TechDraw_RichTextBlock|RichTextBlock]]
|[[TechDraw_Midpoints|Midpoints]]
|[[TechDraw_Midpoints|Midpoints]]
|[[TechDraw_Module|TechDraw]]
|[[TechDraw_Workbench|TechDraw]]
|IconL=Techdraw-textleader.svg
|IconL=TechDraw_RichTextAnnotation.svg
|IconR=TechDraw_Midpoints.svg
|IconC=Workbench_TechDraw.svg
|IconC=Workbench_TechDraw.svg
|IconR=Techdraw-midpoint.svg
}}
}}


<!--T:14-->
{{TechDraw Tools navi}}

<!--T:15-->
{{Userdocnavi}}
</translate>
</translate>
{{TechDraw Tools navi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{clear}}
{{clear}}

Latest revision as of 13:07, 26 March 2024

TechDraw CosmeticVertex

Menu location
TechDraw → Add Vertices → Add Cosmetic Vertex
Workbenches
TechDraw
Default shortcut
None
Introduced in version
0.19
See also
TechDraw Midpoint, TechDraw Quadrant

Description

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

Usage

  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.

Properties

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

See also: Autogenerated API documentation and FreeCAD Scripting Basics.

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)