TechDraw 2PointCosmeticLine: Difference between revisions

From FreeCAD Documentation
mNo edit summary
(Notes)
Line 52: Line 52:
# Press {{Button|OK}} to see your changes.
# Press {{Button|OK}} to see your changes.


==Notes==
<!--T:22-->
To delete a cosmetic line use [[Image:TechDraw_CosmeticEraser.svg|16px]] [[TechDraw_CosmeticEraser|Remove Cosmetic Object]].


* To delete a cosmetic line use [[Image:TechDraw_CosmeticEraser.svg|16px]] [[TechDraw_CosmeticEraser|TechDraw CosmeticEraser]].
<!--T:23-->
To change the appearance of a cosmetic line use [[Image:TechDraw_DecorateLine.svg|16px]] [[TechDraw_DecorateLine|Change Appearance of Line(s)]].
* To change the appearance of a cosmetic line use [[Image:TechDraw_DecorateLine.svg|16px]] [[TechDraw_DecorateLine|TechDraw DecorateLine]].


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

Revision as of 15:03, 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 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 Change Appearance of Line(s) 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 Through 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.

Editing Cosmetic Lines

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.