Sketcher ConstrainParallel: Difference between revisions

From FreeCAD Documentation
(launch option added)
No edit summary
Line 29: Line 29:


<!--T:21-->
<!--T:21-->
# Optionally select two or more lines.
# Optionally select two or more lines. {{Version|0.22}}: Points can be included in the selection, but will be ignored.
# There are several ways to invoke the command:
# There are several ways to invoke the command:
#* Press the {{Button|[[Image:Sketcher_ConstrainParallel.svg|16px]] [[Sketcher_ConstrainParallel|Constrain parallel]]}} button.
#* Press the {{Button|[[Image:Sketcher_ConstrainParallel.svg|16px]] [[Sketcher_ConstrainParallel|Constrain parallel]]}} button.

Revision as of 15:48, 25 February 2024

Sketcher ConstrainParallel

Menu location
Sketch → Sketcher constraints → Constrain parallel
Workbenches
Sketcher
Default shortcut
P
Introduced in version
-
See also
Sketcher ConstrainHorVer

Description

The Sketcher ConstrainParallel command constrains lines to be parallel.

Usage

  1. Optionally select two or more lines. introduced in version 0.22: Points can be included in the selection, but will be ignored.
  2. There are several ways to invoke the command:
    • Press the Constrain parallel button.
    • Select the Sketch → Sketcher constraints → Constrain parallel option from the menu.
    • introduced in version 0.22: Right-click in the 3D view and select the Constrain parallel option from the context menu.
    • Use the keyboard shortcut: P.
  3. To indicate that the command has been activated the cursor changes to a white cross with the command icon.
  4. Optionally keep selecting elements. You can only select two lines at a time now.
  5. To finish the command press Esc or the right mouse button, or start a another constraints or geometries command.

Scripting

Sketch.addConstraint(Sketcher.Constraint('Parallel', Line1, Line2))

The Sketcher scripting page explains the values which can be used for Line1 and Line2 and contains further examples on how to create constraints from Python scripts.