TechDraw FaceCenterLine

From FreeCAD Documentation
Jump to navigation Jump to search
Other languages:
Deutsch • ‎English • ‎français • ‎italiano • ‎polski • ‎русский

TechDraw FaceCenterLine.svg TechDraw FaceCenterLine

Menu location
TechDraw → Add Lines → Add Centerline to Face(s)
Default shortcut
Introduced in version
See also
TechDraw Cosmetic Vertex, TechDraw Centerline between 2 Lines, TechDraw Centerline between 2 Points, TechDraw Cosmetic Eraser


The FaceCenterLine tool adds a centerline to selected faces.

TechDraw FaceCenterLine Sample.png

Centerline added to face


  1. Select one or more Faces in a View.
  2. Press the TechDraw FaceCenterLine.svg Add Centerline to Face(s) button
  3. A dialog will open where you can specify attributes of the new centerline.
  4. A centerline will be added at the midpoint of the bounding box of the selected Face(s).

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

Editing Centerlines

Any of the centerline command buttons (TechDraw FaceCenterLine.svg Add Centerline to Face(s), TechDraw 2LineCenterLine.svg Add Centerline between 2 Lines, TechDraw 2PointCenterLine.svg 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.


Centerlines have no properties of their own, as they are no document objects. They have attributes that can be changed in the centerline edit dialog.

  1. Mode (radio buttons):
    • Vertical: Forces a centerline vertical
    • Horizontal: Forces a centerline horizontal
    • Aligned: This option is not possible for centerline to faces
  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-line.svg Continuous, Dash-line.svg Dash, Dot-line.svg Dot, DashDot-line.svg DashDot, DashDotDot-line.svg DashDotDot


See also: Autogenerated API documentation and FreeCAD Scripting Basics.

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


  • FaceCenterLine will eventually replace two View properties:
    • ViewHorizCenterLine: Show a horizontal centerline through view.
    • ViewVertCenterLine: Show a vertical centerline through view.