Difference between revisions of "TechDraw 2PointCenterLine"

From FreeCAD Documentation
Jump to navigation Jump to search
(relink module to workbench)
 
(30 intermediate revisions by 7 users not shown)
Line 1: Line 1:
 
<languages/>
 
<languages/>
 
<translate>
 
<translate>
<!--T:16-->
 
{{Docnav|[[TechDraw_2LineCenterLine|2LineCenterLine]]|[[TechDraw_CosmeticEraser|CosmeticEraser]]|[[TechDraw_Module|TechDraw]]|IconL=techdraw-2linecenterline.svg|IconC=Workbench_TechDraw.svg|IconR=Techdraw-eraser.svg}}
 
  
 
<!--T:1-->
 
<!--T:1-->
 +
{{Docnav
 +
|[[TechDraw_2LineCenterLine|2LineCenterLine]]
 +
|[[TechDraw_2PointCosmeticLine|2PointCosmeticLine]]
 +
|[[TechDraw_Workbench|TechDraw]]
 +
|IconL=TechDraw_2LineCenterLine.svg
 +
|IconR=TechDraw_2PointCosmeticLine.svg
 +
|IconC=Workbench_TechDraw.svg
 +
}}
 +
 +
<!--T:2-->
 
{{GuiCommand
 
{{GuiCommand
 
|Name=TechDraw 2PointCenterLine
 
|Name=TechDraw 2PointCenterLine
|Icon=techdraw-2linecenterline.svg
+
|MenuLocation=TechDraw → Add Lines → Add Centerline between 2 points
|MenuLocation=TechDraw → 2PointCenterLine
+
|Workbenches=[[TechDraw_Workbench|TechDraw]]
|Workbenches=[[TechDraw Module|TechDraw]]
 
|SeeAlso=[[TechDraw FaceCenterLine]], [[TechDraw 2LineCenterLine]]
 
 
|Version=0.19
 
|Version=0.19
 +
|SeeAlso=[[TechDraw_FaceCenterLine|TechDraw Centerline to Face(s)]], [[TechDraw_2LineCenterLine|TechDraw Centerline between 2 Lines]]
 
}}
 
}}
  
==Description== <!--T:2-->
+
==Description== <!--T:3-->
  
<!--T:8-->
+
<!--T:4-->
The 2PointCenterLine tool adds a center line between two Vertices (Points).
+
The 2PointCenterLine tool adds a centerline between two Vertices (Points).
  
 
</translate>
 
</translate>
[[Image:CL2PointsSample.png]]
+
[[Image:CL2PointsSample.png|200px]]
 
<translate>
 
<translate>
<!--T:9-->
 
{{Caption|Center line between 2 Points}}
 
  
==How to use== <!--T:3-->
+
<!--T:5-->
 +
{{Caption|Centerline between 2 Points}}
 +
 
 +
==Usage== <!--T:6-->
  
<!--T:10-->
+
<!--T:7-->
 
# Select 2 Vertexes in  a View.
 
# Select 2 Vertexes in  a View.
# Press the {{Button|[[Image:techdraw-2pointcenterline.svg|16px]] [[TechDraw 2PointCenterLine|2PointCenterLine]]}} button
+
# Press the {{Button|[[Image:TechDraw_2PointCenterLine.svg|16px]] Add Centerline between 2 Points}} 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 centerline.
# A center line will be added between the 2 selected Vertices.
+
# A centerline will be added between the 2 selected Vertices.
  
==Editing Center Lines== <!--T:20-->
+
<!--T:22-->
Any of the center line command buttons ({{Button|[[Image:techdraw-facecenterline.svg|16px]] [[TechDraw FaceCenterLine|FaceCenterLine]]}}, {{Button|[[Image:techdraw-2linecenterline.svg|16px]] [[TechDraw 2PointCenterLine|2PointCenterLine]]}}, {{Button|[[Image:techdraw-2pointline.svg|16px]] [[TechDraw 2PointCenterLine|2PointCenterLine]]}})
+
To delete a Centerline, select it and use the toolbar button {{Button|[[Image:TechDraw_CosmeticEraser.svg|16px]] [[TechDraw_CosmeticEraser|Remove Cosmetic Object]]}}.
can be used to edit any center line.
 
  
# Select a center line.
+
==Editing Centerlines== <!--T:8-->
# Press any center line command button.
 
# A dialog will open where you can change attributes of thecenter line.
 
# Press OK to see your changes.
 
  
 +
<!--T:9-->
 +
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]] [[TechDraw_2LineCenterLine|Add Centerline between 2 Lines]]}},
 +
{{Button|[[Image:TechDraw_2PointCenterLine.svg|16px]] Add Centerline between 2 Points}})
 +
can be used to edit any centerline. 
  
==Properties== <!--T:19-->
+
<!--T:10-->
 +
# 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.
  
<!--T:20-->
+
==Properties== <!--T:11-->
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
 
# Mode (radio buttons):
 
## Vertical: force center line vertical
 
## Horizontal: force center line horizontal
 
## Aligned: follow the general direction of the Edge for 2 Edge center line
 
## Shift Horiz: move the center line left or right of its normal position
 
## Shift Vert: move the center line up or down from its normal position
 
## Rotate: rotate the center line around its center (degrees. + CCW, -CW)
 
## Extend: make the center line longer by this amount
 
## Color: color of center line
 
## Weight: thickness of the center line
 
## Style: NoLine, Solid, Dash, Dot, DashDot, DashDotDot
 
 
 
==Scripting== <!--T:6-->
 
  
 
<!--T:12-->
 
<!--T:12-->
{{Emphasis|See also:}} [[TechDraw API]] and [[FreeCAD Scripting Basics]].
+
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.
  
<!--T:13-->
+
<!--T:21-->
Cosmetic center lines are not accessible from [[macros]] or the [[Python]] console at this time.
+
# Mode (radio buttons):
 
+
#* '''Vertical''': Forces a centerline vertical
==Notes== <!--T:18-->
+
#* '''Horizontal''': Forces a centerline horizontal
# none
+
#* '''Aligned''': Follows the general direction of the Edge for 2 Edge centerline
 +
# '''Shift Horiz''': Moves the centerline left or right of its normal position
 +
# '''Shift Vert''': Moves the centerline up or down from its normal position
 +
# '''Rotate''': Rotates the centerline around its center (degrees. + counterclockwise, - clockwise)
 +
# '''Extend''': 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
  
<!--T:17-->
+
==Scripting== <!--T:13-->
{{Docnav|[[TechDraw_2LineCenterLine|2LineCenterLine]]|[[TechDraw_EraserCenterLine|CosmeticEraser]]|[[TechDraw_Module|TechDraw]]|IconL=techdraw-2linecenterline.svg|IconC=Workbench_TechDraw.svg|IconR=Techdraw-eraser.svg}}
 
  
 
<!--T:14-->
 
<!--T:14-->
{{TechDraw Tools navi}}
+
{{Emphasis|See also:}} [[TechDraw_API|TechDraw API]] and [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]].
  
 
<!--T:15-->
 
<!--T:15-->
{{Userdocnavi}}
+
Centerlines are not accessible from [[Macros|macros]] or the [[Python|Python]] console at this time. 
 +
 
 +
 
 +
<!--T:18-->
 +
{{Docnav
 +
|[[TechDraw_2LineCenterLine|2LineCenterLine]]
 +
|[[TechDraw_2PointCosmeticLine|2PointCosmeticLine]]
 +
|[[TechDraw_Workbench|TechDraw]]
 +
|IconL=TechDraw_2LineCenterLine.svg
 +
|IconR=TechDraw_2PointCosmeticLine.svg
 +
|IconC=Workbench_TechDraw.svg
 +
}}
 +
 
 
</translate>
 
</translate>
 +
{{TechDraw Tools navi{{#translation:}}}}
 +
{{Userdocnavi{{#translation:}}}}
 
{{clear}}
 
{{clear}}

Latest revision as of 16:17, 26 August 2021

Other languages:
Deutsch • ‎English • ‎français • ‎italiano • ‎polski • ‎русский

TechDraw 2PointCenterLine.svg TechDraw 2PointCenterLine

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

Description

The 2PointCenterLine tool adds a centerline between two Vertices (Points).

CL2PointsSample.png

Centerline between 2 Points

Usage

  1. Select 2 Vertexes in a View.
  2. Press the TechDraw 2PointCenterLine.svg Add Centerline between 2 Points 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 Vertices.

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.

Properties

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: 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-line.svg Continuous, Dash-line.svg Dash, Dot-line.svg Dot, DashDot-line.svg DashDot, DashDotDot-line.svg DashDotDot

Scripting

See also: TechDraw API and FreeCAD Scripting Basics.

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