TechDraw 2PointCosmeticLine: Difference between revisions

From FreeCAD Documentation
(Fixed Docnav)
No edit summary
(23 intermediate revisions by 5 users not shown)
Line 5: Line 5:
{{Docnav
{{Docnav
|[[TechDraw_2PointCenterLine|2PointCenterLine]]
|[[TechDraw_2PointCenterLine|2PointCenterLine]]
|[[TechDraw_CosmeticCircle|CosmeticCircle]]
|[[TechDraw_CosmeticEraser|CosmeticEraser]]
|[[TechDraw_Module|TechDraw]]
|[[TechDraw_Workbench|TechDraw]]
|IconL=TechDraw_2PointCenterLine.svg
|IconL=TechDraw_2PointCenterLine.svg
|IconR=TechDraw_CosmeticEraser.svg
|IconR=TechDraw_CosmeticCircle.svg
|IconC=Workbench_TechDraw.svg
|IconC=Workbench_TechDraw.svg
}}
}}
Line 15: Line 15:
{{GuiCommand
{{GuiCommand
|Name=TechDraw 2PointCosmeticLine
|Name=TechDraw 2PointCosmeticLine
|MenuLocation=TechDraw → Add Lines → Add Cosmetic Line between 2 points
|MenuLocation=TechDraw → Add Lines → Add Cosmetic Line Through 2 points
|Workbenches=[[TechDraw_Module|TechDraw]]
|Workbenches=[[TechDraw_Workbench|TechDraw]]
|Version=0.19
|Version=0.19
|SeeAlso=[[TechDraw_FaceCenterLine|TechDraw Centerline to Face(s)]], [[TechDraw_2LineCenterLine|TechDraw Centerline between 2 Lines]]
|SeeAlso=[[TechDraw_FaceCenterLine|TechDraw FaceCenterLine]], [[TechDraw_2LineCenterLine|TechDraw 2LineCenterLine]], [[TechDraw_2PointCenterLine|TechDraw 2PointCenterLine]]
}}
}}


Line 24: Line 24:


<!--T:4-->
<!--T:4-->
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 [[TechDraw_CosmeticEraser|Remove Cosmetic Object]] tool.
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.


</translate>
</translate>
Line 31: Line 31:


<!--T:5-->
<!--T:5-->
{{Caption|Cosmetic line between 2 Points}}
{{Caption|Cosmetic line between two points}}


==Usage== <!--T:6-->
==Usage create== <!--T:6-->


<!--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 between 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 projection of the points.


<!--T:22-->
==Usage edit== <!--T:8-->
To delete a cosmetic line, select it and use the toolbar button {{Button|[[Image:TechDraw_CosmeticEraser.svg|16px]] [[TechDraw_CosmeticEraser|Remove Cosmetic Object]]}}.

==Editing Cosmetic Lines== <!--T:8-->


<!--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}}


<!--T:10-->
<!--T:10-->
# Select the cosmetic line.
# Select the cosmetic line.
# There are several ways to invoke the tool:
# Press {{Button|[[Image:TechDraw-line2points.svg|16px]] Add Cosmetic line between 2 Points}}.
#* Press the {{Button|[[Image:TechDraw_2PointCosmeticLine.svg|16px]] [[TechDraw_2PointCosmeticLine|Add Cosmetic Line Through 2 points]]}} button.
# A dialog will open where you can change the coordinates of the endpoints.
#* Select the {{MenuCommand|TechDraw → Add Lines → [[Image:TechDraw_2PointCosmeticLine.svg|16px]] Add Cosmetic Line Through 2 points}} option from the menu.
# Press {{Button|OK}} to see your changes.
# A task panel opens.
# Adjust the coordinates of the points.
# Press the {{Button|OK}} button.


<!--T:23-->
==Notes== <!--T:24-->

To change the appearance of a cosmetic line, use [[TechDraw_CosmeticEraser|Remove Cosmetic Object]].
<!--T:25-->
* To delete a cosmetic line select it and press {{KEY|Delete}}. {{Version|0.22}}
* To change the appearance of a cosmetic line use [[Image:TechDraw_DecorateLine.svg|16px]] [[TechDraw_DecorateLine|TechDraw DecorateLine]].


==Properties== <!--T:11-->
==Properties== <!--T:11-->
Line 63: Line 70:
<!--T:12-->
<!--T:12-->
Cosmetic lines have no properties of their own, as they are not document objects.
Cosmetic lines have no properties of their own, as they are not document objects.



==Scripting== <!--T:13-->
==Scripting== <!--T:13-->


<!--T:14-->
<!--T:14-->
{{Emphasis|See also:}} [[TechDraw_API|TechDraw API]] and [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]].
See also: [https://freecad.github.io/SourceDoc/ Autogenerated API documentation] and [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]].


<!--T:15-->
<!--T:15-->
Cosmetic lines can be created using the makeCosmeticLine(v1, v2) or makeCosmeticLine3d(v1, v2) methods of DrawViewPart.
Cosmetic lines can be created using the {{Incode|makeCosmeticLine(v1, v2)}} or {{Incode|makeCosmeticLine3d(v1, v2)}} methods of DrawViewPart.




Line 77: Line 83:
{{Docnav
{{Docnav
|[[TechDraw_2PointCenterLine|2PointCenterLine]]
|[[TechDraw_2PointCenterLine|2PointCenterLine]]
|[[TechDraw_CosmeticCircle|CosmeticCircle]]
|[[TechDraw_CosmeticEraser|CosmeticEraser]]
|[[TechDraw_Module|TechDraw]]
|[[TechDraw_Workbench|TechDraw]]
|IconL=TechDraw_2PointCenterLine.svg
|IconL=TechDraw_2PointCenterLine.svg
|IconR=TechDraw_CosmeticEraser.svg
|IconR=TechDraw_CosmeticCircle.svg
|IconC=Workbench_TechDraw.svg
|IconC=Workbench_TechDraw.svg
}}
}}
Line 87: Line 93:
{{TechDraw Tools navi{{#translation:}}}}
{{TechDraw Tools navi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{clear}}

Revision as of 09:08, 3 April 2024

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 FaceCenterLine, TechDraw 2LineCenterLine, TechDraw 2PointCenterLine

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 projection of the points.

Usage edit

To change the endpoints of a cosmetic line:

  1. Select the cosmetic line.
  2. There are several ways to invoke the tool:
  3. A task panel opens.
  4. Adjust the coordinates of the points.
  5. Press the OK button.

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.