Sketcher ConstrainParallel/pl: Difference between revisions

From FreeCAD Documentation
No edit summary
(Updating to match new version of source page)
Line 40: Line 40:


{{Caption|Result: The selected lines are forced to be parallel to each other. Changing the orientation of one line will change the orientation of the other to be the same.}}
{{Caption|Result: The selected lines are forced to be parallel to each other. Changing the orientation of one line will change the orientation of the other to be the same.}}

== Scripting ==

{{Code|code=Sketch.addConstraint(Sketcher.Constraint('Parallel', Line1, Line2))}}

The [[Scripting_Sketcher_constraints_in_Python|Scripting Sketcher constraints in Python]] page explains the values which can be used for {{incode|Line1}} and {{incode|Line2}} and contains further examples on how to create constraints from Python scripts.



{{Docnav
{{Docnav

Revision as of 19:36, 23 January 2021

Szkicownik: Wiązanie równoległości

Lokalizacja w menu
Sketch → Wiązania szkicownika → Wiązanie równoległości
Środowisko pracy
Szkicownik
Domyślny skrót
Shift + P
Wprowadzono w wersji
-
Zobacz także
Wiązanie pionowe, Wiązanie poziome

Description

The Constrain Parallel constraint forces two selected straight lines or edges to be parallel to each other.

Operation

The sketch contains two randomly oriented lines.

Select both lines by clicking successively on each of them.

Apply the Constrain Parallel constraint by either:

  • Pressing the Constrain parallel button from the Sketcher constraints toolbar by selecting the Constraint Parallel menu item from the Sketcher constraints sub menu of the Sketcher (Sketcher workbench selected) or Part Design (Part Design workbench selected) menu item.
  • Use the Shift + P keyboard shortcut.
  • Use the Sketch → Sketcher constraints → Constrain parallel entry from the top menu.

Result: The selected lines are forced to be parallel to each other. Changing the orientation of one line will change the orientation of the other to be the same.

Scripting

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

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