TechDraw 2PointCosmeticLine: Difference between revisions

From FreeCAD Documentation
(Marked this version for translation)
No edit summary
Line 17: Line 17:
|Icon=TechDraw-line2points.svg
|Icon=TechDraw-line2points.svg
|MenuLocation=TechDraw → Add Lines → Add Cosmetic Line between 2 points
|MenuLocation=TechDraw → Add Lines → Add Cosmetic Line between 2 points
|Workbenches=[[TechDraw Module|TechDraw]]
|Workbenches=[[TechDraw_Module|TechDraw]]
|SeeAlso=[[TechDraw_FaceCenterLine|Add Centerline to Face(s)]], [[TechDraw_2LineCenterLine|Add Centerline between 2 Lines]]
|SeeAlso=[[TechDraw_FaceCenterLine|Add Centerline to Face(s)]], [[TechDraw_2LineCenterLine|Add Centerline between 2 Lines]]
|Version=0.19
|Version=0.19
Line 37: Line 37:


<!--T:7-->
<!--T:7-->
# Select 2 Vertexes in a View or 2 Vertexes in the 3D view
# Select 2 Vertexes in a View or 2 Vertexes in the 3D view.
# Press the {{Button|[[Image:TechDraw-line2points.svg|16px]] Add Cosmetic line between 2 Points}} button
# Press the {{Button|[[Image:TechDraw-line2points.svg|16px]] Add Cosmetic line between 2 Points}} button.
# A dialog will open where you can adjust the coordinates of the 2 points.
# A dialog will open where you can adjust the coordinates of the 2 points.
# A line will be added to connect the 2 selected Vertices. In the case of 3d points, the line will connect the projection of the selected points.
# A line will be added to connect the 2 selected Vertices. In the case of 3d points, the line will connect the projection of the selected points.
Line 49: Line 49:
<!--T:9-->
<!--T:9-->
To change the endpoints of a cosmetic line,
To change the endpoints of a cosmetic line,
{{Button|[[Image:TechDraw-line2points.svg|16px]] Add Cosmetic line between 2 Points}}.
{{Button|[[Image:TechDraw-line2points.svg|16px]] Add Cosmetic line between 2 Points}}


<!--T:10-->
<!--T:10-->
Line 58: Line 58:


<!--T:23-->
<!--T:23-->
To change the appearance of a cosmetic line, use [[TechDraw_CosmeticEraser|Remove Cosmetic Object]],
To change the appearance of a cosmetic line, use [[TechDraw_CosmeticEraser|Remove Cosmetic Object]].


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

Revision as of 13:42, 23 August 2020

TechDraw 2PointCosmeticLine

Menu location
TechDraw → Add Lines → Add Cosmetic Line between 2 points
Workbenches
TechDraw
Default shortcut
None
Introduced in version
0.19
See also
Add Centerline to Face(s), Add Centerline between 2 Lines

Description

The 2PointCosmeticLine tool adds a cosmetic line between two Vertices (Points). The vertices can be 2d or 3d. The resulting line can be used for dimensioning. The line's appearance can be modified using the Remove Cosmetic Object tool.

Cosmetic line between 2 Points

Usage

  1. Select 2 Vertexes in a View or 2 Vertexes in the 3D view.
  2. Press the Add Cosmetic line between 2 Points button.
  3. A dialog will open where you can adjust the coordinates of the 2 points.
  4. A line will be added to connect the 2 selected Vertices. In the case of 3d points, the line will connect the projection of the selected points.

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

Editing Cosmetic Lines

To change the endpoints of a cosmetic line, Add Cosmetic line between 2 Points

  1. Select the cosmetic line.
  2. Press Add Cosmetic line between 2 Points.
  3. A dialog will open where you can change the coordinates of the endpoints.
  4. Press OK to see your changes.

To change the appearance of a cosmetic line, use Remove Cosmetic Object.

Properties

Cosmetic lines have no properties of their own, as they are not document objects.


Scripting

See also: TechDraw API and FreeCAD Scripting Basics.

Cosmetic lines can be created using the makeCosmeticLine(v1, v2) or makeCosmeticLine3d(v1, v2) methods of DrawViewPart.