TechDraw 2LineCenterLine: Difference between revisions

From FreeCAD Documentation
No edit summary
(V0.22 -> V1.0)
 
(17 intermediate revisions by the same user not shown)
Line 18: Line 18:
|Workbenches=[[TechDraw_Workbench|TechDraw]]
|Workbenches=[[TechDraw_Workbench|TechDraw]]
|Version=0.19
|Version=0.19
|SeeAlso=[[TechDraw_FaceCenterLine|TechDraw Centerline to Face(s)]], [[TechDraw_2PointCenterLine|TechDraw Centerline between 2 Points]]
|SeeAlso=[[TechDraw_FaceCenterLine|TechDraw FaceCenterLine]], [[TechDraw_2PointCenterLine|TechDraw 2PointCenterLine]]
}}
}}


Line 24: Line 24:


<!--T:4-->
<!--T:4-->
The '''TechDraw 2LineCenterLine''' tool adds a centerline between two Edges.
The '''TechDraw 2LineCenterLine''' tool adds a centerline between two edges.


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


<!--T:5-->
<!--T:5-->
{{Caption|Aligned centerline between 2 Edges}}
{{Caption|Aligned centerline between two edges}}


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


<!--T:7-->
<!--T:7-->
# Select 2 Edges in a View. The Edges should be more or less parallel.
# Select two edges in a View. The edges should be more or less parallel.
# There are several ways to invoke the tool:
# Press the {{Button|[[Image:TechDraw_2LineCenterLine.svg|16px]] Add Centerline between 2 Lines}} button
#* Press the {{Button|[[Image:TechDraw_2LineCenterLine.svg|16px]] [[TechDraw_2LineCenterLine|Add Centerline between 2 Lines]]}} button.
# A dialog will open where you can specify attributes of the new centerline.
#* Select the {{MenuCommand|TechDraw → Add Lines → [[Image:TechDraw_2LineCenterLine.svg|16px]] Add Centerline between 2 Lines}} option from the menu.
# A centerline will be added between the 2 selected Edges.</br>'''If the generated line looks odd or didn't generate at all, you may need to use the option''' [[#Flip_Ends|'''Flip Ends''']].
# A task panel opens. See [[TechDraw_FaceCenterLine#Options|TechDraw FaceCenterLine]] for more information.
# Press the {{Button|OK}} button to confirm.
# A centerline is added between the selected edges.


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


==Editing Centerlines== <!--T:9-->
<!--T:28-->
See [[TechDraw_FaceCenterLine#Usage_edit|TechDraw FaceCenterLine]].


<!--T:21-->
==Notes== <!--T:29-->
Any of the centerline command buttons (
{{Button|[[Image:TechDraw_FaceCenterLine.svg|16px]] [[TechDraw_FaceCenterLine|Add Centerline to Face(s)]]}},
{{Button|[[Image:TechDraw_2LineCenterLine.svg|16px]] Add Centerline between 2 Lines}},
{{Button|[[Image:TechDraw_2PointCenterLine.svg|16px]] [[TechDraw_2PointCenterLine|Add Centerline between 2 Points]]}})
can be used to edit any centerline.


<!--T:10-->
<!--T:30-->
* To delete a centerline select it and press {{KEY|Delete}}. {{Version|1.0}}
# Select a centerline.
# Press any centerline command button.
# A dialog will open where you can change attributes of the centerline.
# Press {{Button|OK}} to see your changes.


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


<!--T:12-->
<!--T:32-->
Centerlines have no properties of their own, as they are no document objects. They have attributes that can be edited via the dialog.
Centerlines have no properties of their own, as they are not document objects.

<!--T:22-->
* '''Orientation''':
** '''Vertical''': Forces a centerline vertical
** '''Horizontal''': Forces a centerline horizontal
** '''Aligned''': Follows the general direction of the Edge for 2 Edge centerline
* '''Shift Horizontal''': Moves the centerline left or right of its normal position
* '''Shift Vertical''': Moves the centerline up or down from its normal position
* '''Rotate''': Rotates the centerline around its center (degrees. + counterclockwise, - clockwise)
* '''Extend By''': Makes the centerline longer by this amount
* '''Color''': Color of centerline
* '''Weight''': Thickness of the centerline
* '''Style''': [[Image:Continuous-line.svg|20px]] Continuous, [[Image:Dash-line.svg|20px]] Dash, [[Image:Dot-line.svg|20px]] Dot, [[Image:DashDot-line.svg|20px]] DashDot, [[Image:DashDotDot-line.svg|20px]] DashDotDot
* '''Flip Ends''': Flips endpoints for creation as described below. (attribute removed for FreeCAD 0.20)

==Flip Ends== <!--T:23-->

<!--T:24-->
[[Image:TD-CenterLineFlip.png|thumb|350px|Sketch how the centerline is constructed]]
The centerline between 2 lines is drawn between the midpoints (m0 and m1) of the lines that connects the endpoints of the selected lines (p0 and p1), see the sketch. Depending on the point order there are 2 possibilities to draw the connecting lines. The attribute '''Flip Ends''' flips the way the connecting lines are drawn. In FreeCAD 0.20 the point order is automatically determined so that the '''Flip Ends''' attribute is no longer necessary.

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

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

<!--T:15-->
Centerlines are not accessible from [[Macros|macros]] or the [[Python|Python]] console at this time.




Line 106: Line 73:
{{TechDraw Tools navi{{#translation:}}}}
{{TechDraw Tools navi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{clear}}

Latest revision as of 10:22, 21 April 2024

TechDraw 2LineCenterLine

Menu location
TechDraw → Add Lines → Add Centerline between 2 Lines
Workbenches
TechDraw
Default shortcut
None
Introduced in version
0.19
See also
TechDraw FaceCenterLine, TechDraw 2PointCenterLine

Description

The TechDraw 2LineCenterLine tool adds a centerline between two edges.

Aligned centerline between two edges

Usage create

  1. Select two edges in a View. The edges should be more or less parallel.
  2. There are several ways to invoke the tool:
  3. A task panel opens. See TechDraw FaceCenterLine for more information.
  4. Press the OK button to confirm.
  5. A centerline is added between the selected edges.

Usage edit

See TechDraw FaceCenterLine.

Notes

Properties

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