TechDraw 2LineCenterLine: Difference between revisions

From FreeCAD Documentation
(typos)
No edit summary
(6 intermediate revisions by 5 users not shown)
Line 4: Line 4:
<!--T:1-->
<!--T:1-->
{{Docnav
{{Docnav
|[[TechDraw_FaceCenterLine|Add Centerline to Face(s)]]
|[[TechDraw_FaceCenterLine|Centerline to Face(s)]]
|[[TechDraw_2PointCenterLine|Add Centerline between 2 Points]]
|[[TechDraw_2PointCenterLine|Centerline between 2 Points]]
|[[TechDraw_Module|TechDraw]]
|[[TechDraw_Module|TechDraw]]
|IconL=TechDraw_FaceCenterLine.svg
|IconL=TechDraw_FaceCenterLine.svg
|IconC=Workbench_TechDraw.svg
|IconR=TechDraw_2PointCenterLine.svg
|IconR=TechDraw_2PointCenterLine.svg
|IconC=Workbench_TechDraw.svg
}}
}}


Line 16: Line 16:
|Name=TechDraw 2LineCenterLine
|Name=TechDraw 2LineCenterLine
|MenuLocation=TechDraw → Add Lines → Add Centerline between 2 Lines
|MenuLocation=TechDraw → Add Lines → Add Centerline between 2 Lines
|Workbenches=[[TechDraw Module|TechDraw]]
|Workbenches=[[TechDraw_Module|TechDraw]]
|SeeAlso=[[TechDraw_FaceCenterLine|Add Centerline to Face(s)]], [[TechDraw_2PointCenterLine|Add Centerline between 2 Points]]
|Version=0.19
|Version=0.19
|SeeAlso=[[TechDraw_FaceCenterLine|TechDraw Centerline to Face(s)]], [[TechDraw_2PointCenterLine|TechDraw Centerline between 2 Points]]
}}
}}


Line 39: Line 39:
# Press the {{Button|[[Image:TechDraw_2LineCenterLine.svg|16px]] Add Centerline between 2 Lines}} button
# Press the {{Button|[[Image:TechDraw_2LineCenterLine.svg|16px]] Add Centerline between 2 Lines}} button
# A dialog will open where you can specify attributes of the new centerline.
# A dialog will open where you can specify attributes of the new centerline.
# A centerline will be added between the 2 selected Edges.</br>If the generated line looks odd, you may need to use the option [[#Flip_Ends|'''Flip Ends''']].
# 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''']].


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


Line 48: Line 49:
Any of the centerline command buttons (
Any of the centerline command buttons (
{{Button|[[Image:TechDraw_FaceCenterLine.svg|16px]] [[TechDraw_FaceCenterLine|Add Centerline to Face(s)]]}},
{{Button|[[Image:TechDraw_FaceCenterLine.svg|16px]] [[TechDraw_FaceCenterLine|Add Centerline to Face(s)]]}},
{{Button|[[Image:TechDraw_2LineCenterLine.svg|16px]] [[TechDraw_2LineCenterLine|Add Centerline between 2 Lines]]}},
{{Button|[[Image:TechDraw_2LineCenterLine.svg|16px]] Add Centerline between 2 Lines}},
{{Button|[[Image:TechDraw_2PointCenterLine.svg|16px]] [[TechDraw_2PointCenterLine|Add Centerline between 2 Points]]}})
{{Button|[[Image:TechDraw_2PointCenterLine.svg|16px]] [[TechDraw_2PointCenterLine|Add Centerline between 2 Points]]}})
can be used to edit any centerline.
can be used to edit any centerline.
Line 64: Line 65:


<!--T:22-->
<!--T:22-->
# Mode (radio buttons):
# Modus (radio buttons):
#* '''Vertical''': Forces a centerline vertical
#* '''Vertical''': Forces a centerline vertical
#* '''Horizontal''': Forces a centerline horizontal
#* '''Horizontal''': Forces a centerline horizontal
Line 86: Line 87:


<!--T:14-->
<!--T:14-->
{{Emphasis|See also:}} [[TechDraw API|TechDraw API]] and [[FreeCAD Scripting Basics|FreeCAD Scripting Basics]].
{{Emphasis|See also:}} [[TechDraw_API|TechDraw API]] and [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]].


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


<!--T:18-->
<!--T:18-->
{{Docnav
{{Docnav
|[[TechDraw_FaceCenterLine|Add Centerline to Face(s)]]
|[[TechDraw_FaceCenterLine|Centerline to Face(s)]]
|[[TechDraw_2PointCenterLine|Add Centerline between 2 Points]]
|[[TechDraw_2PointCenterLine|Centerline between 2 Points]]
|[[TechDraw_Module|TechDraw]]
|[[TechDraw_Module|TechDraw]]
|IconL=TechDraw_FaceCenterLine.svg
|IconL=TechDraw_FaceCenterLine.svg
|IconC=Workbench_TechDraw.svg
|IconR=TechDraw_2PointCenterLine.svg
|IconR=TechDraw_2PointCenterLine.svg
|IconC=Workbench_TechDraw.svg
}}
}}



Revision as of 21:16, 21 December 2020

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 Centerline to Face(s), TechDraw Centerline between 2 Points

Description

The 2LineCenterLine tool adds a centerline between two Edges.

Aligned centerline between 2 Edges

Usage

  1. Select 2 Edges in a View. The Edges should be more or less parallel.
  2. Press the Add Centerline between 2 Lines button
  3. A dialog will open where you can specify attributes of the new centerline.
  4. A centerline will be added between the 2 selected Edges.
    If the generated line looks odd or didn't generate at all, you may need to use the option Flip Ends.

To delete a Centerline, select it and use the toolbar button Remove Cosmetic Object.

Editing Centerlines

Any of the centerline command buttons ( Add Centerline to Face(s), Add Centerline between 2 Lines, Add Centerline between 2 Points) can be used to edit any centerline.

  1. Select a centerline.
  2. Press any centerline command button.
  3. A dialog will open where you can change attributes of the centerline.
  4. Press OK to see your changes.

Properties

Centerlines have no properties of their own, as they are no document objects. They have attributes that can be edited.

  1. Modus (radio buttons):
    • Vertical: Forces a centerline vertical
    • Horizontal: Forces a centerline horizontal
    • Aligned: Follows the general direction of the Edge for 2 Edge centerline
  2. Shift Horiz: Moves the centerline left or right of its normal position
  3. Shift Vert: Moves the centerline up or down from its normal position
  4. Rotate: Rotates the centerline around its center (degrees. + counterclockwise, - clockwise)
  5. Extend: Makes the centerline longer by this amount
  6. Color: Color of centerline
  7. Weight: Thickness of the centerline
  8. Style: Continuous, Dash, Dot, DashDot, DashDotDot
  9. Flip Ends: Flips endpoints for creation as described below

Flip Ends

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 option Flip Ends flips the way the connecting lines are drawn.

Scripting

See also: TechDraw API and FreeCAD Scripting Basics.

Centerlines are not accessible from macros or the Python console at this time.