GuiCommand: Name: TechDraw 2PointCosmeticLine MenuLocation: TechDraw , Add Lines , Add Cosmetic Line Through 2 points Workbenches: TechDraw_Workbench Version: 0.19 SeeAlso: TechDraw_FaceCenterLine, TechDraw_2LineCenterLine, TechDraw_2PointCenterLine
TechDraw 2PointCosmeticLine
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.
![](https://raw.githubusercontent.com/FreeCAD/FreeCAD-documentation/master/wiki/images/CosLine2PointsSample.png)
Cosmetic line between two points
Usage create
- Select two points in a TechDraw View or two points in the 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.
- There are several ways to invoke the tool:
- Press the
Add Cosmetic Line Through 2 points button.
- Select the TechDraw → Add Lines →
Add Cosmetic Line Through 2 points option from the menu.
- Press the
- A task panel opens.
- Optionally adjust the coordinates of the points.
- Press the OK button.
- A cosmetic line connecting the two points is added. In the case of 3D points, the line connects the projection of the points.
Usage edit
To change the endpoints of a cosmetic line:
- Select the cosmetic line.
- There are several ways to invoke the tool:
- Press the
Add Cosmetic Line Through 2 points button.
- Select the TechDraw → Add Lines →
Add Cosmetic Line Through 2 points option from the menu.
- Press the
- A task panel opens.
- Adjust the coordinates of the points.
- Press the OK button.
Notes
- To delete a cosmetic line select it and press Delete. (v1.0)
- To change the appearance of a cosmetic line use
TechDraw DecorateLine.
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 {{Incode|makeCosmeticLine(v1, v2)}} or {{Incode|makeCosmeticLine3d(v1, v2)}} methods of DrawViewPart.
{{TechDraw Tools navi}}
⏵ documentation index > TechDraw > TechDraw 2PointCosmeticLine
This page is retrieved from https://github.com/FreeCAD/FreeCAD-documentation/blob/main/wiki/TechDraw_2PointCosmeticLine.md