TechDraw 2PointCosmeticLine: Difference between revisions

From FreeCAD Documentation
(Description)
(Usage create)
Line 36: Line 36:


<!--T:7-->
<!--T:7-->
# Select 2 Vertexes in a View or 2 Vertexes in the 3D view.
# Select two points in a TechDraw View or two points in the [[3D_view|3D view]].
# If you have selected points in the 3D view: add the correct TechDraw View to the selection by selecting it in the [[Tree_view|Tree view]].
# Press the {{Button|[[Image:TechDraw-line2points.svg|16px]] Add Cosmetic Line Through 2 points}} button.
# There are several ways to invoke the tool:
# A dialog will open where you can adjust the coordinates of the 2 points.
#* Press the {{Button|[[Image:TechDraw_2PointCosmeticLine.svg|16px]] [[TechDraw_2PointCosmeticLine|Add Cosmetic Line Through 2 points]]}} button.
# 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.
#* Select the {{MenuCommand|TechDraw → Add Lines → [[Image:TechDraw_2PointCosmeticLine.svg|16px]] Add Cosmetic Line Through 2 points}} option from the menu.
# A task panel opens.
# Optionally adjust the coordinates of the points.
# Press the {{Button|OK}} button.
# A cosmetic line connecting the two points is added. In the case of 3D points, the line connects the projections of the points.


==Usage edit== <!--T:8-->
==Usage edit== <!--T:8-->

Revision as of 15:21, 26 July 2023

TechDraw 2PointCosmeticLine

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

Description

The TechDraw 2PointCosmeticLine tool adds a cosmetic line between two points. The points can be 2D or 3D. The resulting line can be used for dimensioning.

Cosmetic line between two points

Usage create

  1. Select two points in a TechDraw View or two points in the 3D view.
  2. If you have selected points in the 3D view: add the correct TechDraw View to the selection by selecting it in the Tree view.
  3. There are several ways to invoke the tool:
  4. A task panel opens.
  5. Optionally adjust the coordinates of the points.
  6. Press the OK button.
  7. A cosmetic line connecting the two points is added. In the case of 3D points, the line connects the projections of the points.

Usage edit

To change the endpoints of a cosmetic line:

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

Notes

Properties

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

Scripting

See also: Autogenerated API documentation and FreeCAD Scripting Basics.

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