TechDraw FaceCenterLine/en: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
(Updating to match new version of source page)
Line 1: Line 1:
<languages/>
<languages/>
{{Docnav
{{Docnav
|[[TechDraw_Quadrant|Quadrant]]
|[[TechDraw_Quadrants|Add Quadrant Vertices]]
|[[TechDraw_2LineCenterLine|2LineCenterLine]]
|[[TechDraw_2LineCenterLine|Add Centerline between 2 Lines]]
|[[TechDraw_Module|TechDraw]]
|[[TechDraw_Module|TechDraw]]
|IconL=techdraw-quadrant.svg
|IconL=TechDraw_Quadrants.svg
|IconC=Workbench_TechDraw.svg
|IconC=Workbench_TechDraw.svg
|IconR=techdraw-2linecenterline.svg
|IconR=TechDraw_2LineCenterLine.svg
}}
}}


{{GuiCommand
{{GuiCommand
|Name=TechDraw FaceCenterLine
|Name=TechDraw FaceCenterLine
|Icon=techdraw-facecenterline.svg
|MenuLocation=TechDraw → Add Lines → Add Centerline to Face(s)
|MenuLocation=TechDraw → Add Lines → Add Centerline to Face(s)
|Workbenches=[[TechDraw Module|TechDraw]]
|Workbenches=[[TechDraw Module|TechDraw]]
|SeeAlso=[[TechDraw_CosmeticVertex|Add Cosmetic Vertex]], [[TechDraw_2LineCenterLine|Add Centerline between 2 Lines]], [[TechDraw_2PointCenterLine|Add Centerline between 2 Points]], [[TechDraw_CosmeticEraser|Remove Cosmetic Object]]
|SeeAlso=[[TechDraw CosmeticVertex]], [[TechDraw CosmeticEraser]]
|Version=0.19
|Version=0.19
}}
}}
Line 20: Line 19:
==Description==
==Description==


The FaceCenterLine tool adds a center line to one or more Faces.
The FaceCenterLine tool adds a centerline to selected faces.


[[Image:TechDraw_FaceCenterLine_Sample.png]]
[[Image:TechDraw_FaceCenterLine_Sample.png]]
{{Caption|Center line added to face}}
{{Caption|Center line added to face}}


==How to use==
==Usage==


# Select one or more Faces in a View.
# Select one or more Faces in a View.
# Press the {{Button|[[Image:techdraw-facecenterline.svg|16px]] [[TechDraw FaceCenterLine|FaceCenterLine]]}} button
# Press the {{Button|[[Image:TechDraw_FaceCenterLine.svg|16px]] [[TechDraw_FaceCenterLine|Add Centerline to Face(s)]]}} button
# A dialog will open where you can specify attributes of the new center line.
# A dialog will open where you can specify attributes of the new center line.
# A center line will be added at the midpoint of the bounding box of the selected Face(s).
# A center line will be added at the midpoint of the bounding box of the selected Face(s).
Line 34: Line 33:
==Editing Center Lines==
==Editing Center Lines==


Any of the centerline command buttons(
Any of the center line command buttons ({{Button|[[Image:techdraw-facecenterline.svg|16px]] [[TechDraw FaceCenterLine|FaceCenterLine]]}}, {{Button|[[Image:techdraw-2linecenterline.svg|16px]] [[TechDraw 2LineCenterLine|2LineCenterLine]]}},
{{Button|[[Image:techdraw-2pointcenterline.svg|16px]] [[TechDraw 2PointCenterLine|2PointCenterLine]]}})
{{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]]}},
can be used to edit any center line.
{{Button|[[Image:TechDraw_2PointCenterLine.svg|16px]] [[TechDraw_2PointCenterLine|Add Centerline between 2 Points]]}})
can be used to edit any centerline.


# Select a center line.
# Select a center line.
# Press any center line command button.
# Press any center line command button.
# A dialog will open where you can change attributes of the center line.
# A dialog will open where you can change attributes of the center line.
# Press OK to see your changes.
# Press {{Button|OK}} to see your changes.


==Properties==
==Properties==
Line 70: Line 71:
** {{PropertyView|HorizCenterLine}}: Show a horizontal centerline through view.
** {{PropertyView|HorizCenterLine}}: Show a horizontal centerline through view.
** {{PropertyView|VertCenterLine}}: Show a vertical centerline through view.
** {{PropertyView|VertCenterLine}}: Show a vertical centerline through view.



{{Docnav
{{Docnav
|[[TechDraw_Quadrant|Quadrant]]
|[[TechDraw_Quadrants|Add Quadrant Vertices]]
|[[TechDraw_2LineCenterLine|2LineCenterLine]]
|[[TechDraw_2LineCenterLine|Add Centerline between 2 Lines]]
|[[TechDraw_Module|TechDraw]]
|[[TechDraw_Module|TechDraw]]
|IconL=techdraw-quadrant.svg
|IconL=TechDraw_Quadrants.svg
|IconC=Workbench_TechDraw.svg
|IconC=Workbench_TechDraw.svg
|IconR=techdraw-2linecenterline.svg
|IconR=TechDraw_2LineCenterLine.svg
}}
}}



Revision as of 22:52, 4 February 2020

TechDraw FaceCenterLine

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

Description

The FaceCenterLine tool adds a centerline to selected faces.

Center line added to face

Usage

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

Editing Center Lines

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 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 OK 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):
    1. Vertical: force center line vertical
    2. Horizontal: force center line horizontal
    3. Aligned: follow the general direction of the Edge for 2 Edge center line
  2. Shift Horiz: move the center line left or right of its normal position
  3. Shift Vert: move the center line up or down from its normal position
  4. Rotate: rotate the center line around its center (degrees. + CCW, -CW)
  5. Extend: make the center line longer by this amount
  6. Color: color of center line
  7. Weight: thickness of the center line
  8. Style: NoLine, Solid, Dash, Dot, DashDot, DashDotDot

Scripting

See also: TechDraw API and FreeCAD Scripting Basics.

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

Notes

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