TechDraw Midpoints: Difference between revisions

From FreeCAD Documentation
(Marked this version for translation)
No edit summary
Line 15: Line 15:
|Name=TechDraw Midpoints
|Name=TechDraw Midpoints
|MenuLocation=TechDraw → Add Vertices → Add Midpoints Vertices
|MenuLocation=TechDraw → Add Vertices → Add Midpoints Vertices
|Workbenches=[[TechDraw Module|TechDraw]]
|Workbenches=[[TechDraw_Module|TechDraw]]
|SeeAlso=[[TechDraw_CosmeticVertex|Add Cosmetic Vertex]], [[TechDraw_Quadrants|Add Quadrant Vertices]]
|SeeAlso=[[TechDraw_CosmeticVertex|TechDraw Add Cosmetic Vertex]], [[TechDraw_Quadrants|TechDraw Add Quadrant Vertices]]
|Version=0.19
|Version=0.19
}}
}}
Line 49: Line 49:


<!--T:12-->
<!--T:12-->
{{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]].


<!--T:13-->
<!--T:13-->
Cosmetic Vertices are not accessible from [[macros|macros]] or the [[Python|Python]] console at this time. This snippet will remove all Cosmetic Vertices from the View.
Cosmetic Vertices are not accessible from [[Macros|macros]] or the [[Python|Python]] console at this time. This snippet will remove all Cosmetic Vertices from the View.


</translate>
</translate>

Revision as of 21:37, 22 November 2020

TechDraw Midpoints

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

Description

The Midpoints tool adds Cosmetic Vertices at the midpoints of one or more Edges.

Cosmetic Vertices at midpoints of Edges

Usage

  1. Select one or more Edges in a View.
  2. Press the Add Midpoint Vertices button
  3. Cosmetic Vertices will be added at the mid-point(s) of the Edge(s).

To delete a Midpoint, select it and use the toolbar button Remove Cosmetic Object.

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: TechDraw API and FreeCAD Scripting Basics.

Cosmetic Vertices are not accessible from macros or the Python console at this time. This snippet will remove all Cosmetic Vertices from the View.

>>> v = App.ActiveDocument.View
>>> v.clearCV()
>>> App.activeDocument().recompute()