TechDraw 2LineCenterLine/en

Description
The 2LineCenterLine tool adds a center line between two Edges.



Usage

 * 1) Select 2 Edges in  a View. The Edges should be more or less parallel.
 * 2) Press the  button
 * 3) A dialog will open where you can specify attributes of the new center line.
 * 4) A center line will be added between the 2 selected Edges.

Note: If the generated center line looks particularly odd, you may need to edit the center line and click the "Flip ends" radio button.

Editing Center Lines
Any of the centerline command buttons can be used to edit any centerline.


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

Properties
Cosmetic center lines have no properties of their own, as they are not Document Objects. They do have attributes that can be changed in the center line edit dialog. Not all attributes apply to all center lines.


 * 1) Mode (radio buttons):
 * 2) * Vertical: Forces a centerline vertical
 * 3) * Horizontal: Forces a centerline horizontal
 * 4) * Aligned: Follows the general direction of the Edge for 2 Edge center line
 * 5) Shift Horiz: Moves the centerline left or right of its normal position
 * 6) Shift Vert: Moves the centerline up or down from its normal position
 * 7) Rotate: Rotates the centerline around its center (degrees. + counterclockwise, - clockwise)
 * 8) Extend: Makes the centerline longer by this amount
 * 9) Color: Color of centerline
 * 10) Weight: Thickness of the centerline
 * 11) 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
 * 12) Flip Ends: Flips endpoints for creation as described below

Flip Ends
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
TechDraw API and FreeCAD Scripting Basics.

Cosmetic center lines are not accessible from macros or the Python console at this time.