Difference between revisions of "Sketcher ConstrainParallel/pt-br"

From FreeCAD Documentation
Jump to navigation Jump to search
(Updating to match new version of source page)
(Updating to match new version of source page)
 
(7 intermediate revisions by 2 users not shown)
Line 4: Line 4:
 
|[[Sketcher_ConstrainPerpendicular|Perpendicular]]
 
|[[Sketcher_ConstrainPerpendicular|Perpendicular]]
 
|[[Sketcher_Workbench|Sketcher]]
 
|[[Sketcher_Workbench|Sketcher]]
|IconL=Constraint_Horizontal.png
+
|IconL=Sketcher_ConstrainHorizontal.svg
 +
|IconR=Sketcher_ConstrainPerpendicular.svg
 
|IconC=Workbench_Sketcher.svg
 
|IconC=Workbench_Sketcher.svg
|IconR=Constraint_Perpendicular.png
 
 
}}
 
}}
  
 
<div class="mw-translate-fuzzy">
 
<div class="mw-translate-fuzzy">
{{GuiCommand/pt-br|Name=Constraint Parallel|Name/pt-br=Constraint Parallel|Workbenches=[[Sketcher Workbench/pt-br|Sketcher]], [[PartDesign Workbench/pt-br|PartDesign]]|MenuLocation=Sketch → Sketcher constraints → Constrain parallel|SeeAlso=[[Constraint Vertical/pt-br|Constraint Vertical]], [[Constraint Horizontal/pt-br|Constraint Horizontal]]}}
+
{{GuiCommand/pt-br
 +
|Name=Constraint Parallel
 +
|Name/pt-br=Constraint Parallel
 +
|Workbenches=[[Sketcher Workbench/pt-br|Sketcher]], [[PartDesign Workbench/pt-br|PartDesign]]
 +
|MenuLocation=Sketch → Sketcher constraints → Constrain parallel
 +
|SeeAlso=[[Sketcher_ConstrainVertical/pt-br|Constraint Vertical]], [[Sketcher_ConstrainHorizontal/pt-br|Constraint Horizontal]]
 +
}}
 
</div>
 
</div>
  
==Description==
+
==Description==  
 +
 
 
The Constrain Parallel constraint forces two selected straight lines or edges to be parallel to each other.  
 
The Constrain Parallel constraint forces two selected straight lines or edges to be parallel to each other.  
  
==Operation==
+
==Operation==  
 +
 
 
The sketch contains two randomly oriented lines.
 
The sketch contains two randomly oriented lines.
  
[[Image:ConstrainParallel1.png|256px]]
+
[[Image:ConstrainParallel1.png|500px]]
  
Select both lines by clicking successively on each of them.
+
{{Caption|Select both lines by clicking successively on each of them.}}
  
[[File:ConstrainParallel2.png|256px]]
+
[[File:ConstrainParallel2.png|500px]]
  
 
Apply the Constrain Parallel constraint by either:
 
Apply the Constrain Parallel constraint by either:
* Pressing the {{Button|[[Image:Constraint_Parallel.png|16px]] [[Sketcher ConstrainParallel|Constrain Parallel]]}} button from the Sketcher constraints toolbarby 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.
+
* Pressing the {{Button|[[File:Sketcher_ConstrainParallel.svg|16px]] [[Sketcher_ConstrainParallel|Constrain parallel]]}} button from the Sketcher constraints toolbar.
* Use the {{KEY|Shift}} + {{KEY|P}} keyboard shortcut.
+
* Use the {{KEY|P}} keyboard shortcut.
* Use the {{MenuCommand|Sketch → Sketcher constraints → Constrain parallel}} entry from the top menu.
+
* Use the {{MenuCommand|Sketch → Sketcher constraints → [[File:Sketcher_ConstrainParallel.svg|16px]] Constrain parallel}} entry from the top menu.
 +
 
 +
[[Image:ConstrainParallel3.png|500px]]
 +
 
 +
{{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))}}
  
[[Image:ConstrainParallel3.png|256px]]
+
The [[Sketcher_scripting|Sketcher scripting]] 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.
  
'''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.
 
  
 
{{Docnav
 
{{Docnav
Line 38: Line 53:
 
|[[Sketcher_ConstrainPerpendicular|Perpendicular]]
 
|[[Sketcher_ConstrainPerpendicular|Perpendicular]]
 
|[[Sketcher_Workbench|Sketcher]]
 
|[[Sketcher_Workbench|Sketcher]]
|IconL=Constraint_Horizontal.png
+
|IconL=Sketcher_ConstrainHorizontal.svg
 +
|IconR=Sketcher_ConstrainPerpendicular.svg
 
|IconC=Workbench_Sketcher.svg
 
|IconC=Workbench_Sketcher.svg
|IconR=Constraint_Perpendicular.png
 
 
}}
 
}}
  
{{Sketcher Tools navi}}
+
{{Sketcher Tools navi{{#translation:}}}}
 
+
{{Userdocnavi{{#translation:}}}}
{{Userdocnavi}}
+
{{clear}}

Latest revision as of 20:20, 20 March 2022

Other languages:
Deutsch • ‎English • ‎español • ‎français • ‎italiano • ‎polski • ‎português • ‎português do Brasil • ‎română • ‎svenska • ‎čeština • ‎русский

Constraint Parallel.svg Constraint Parallel

Veja também
Sketch → Sketcher constraints → Constrain parallel
Bancadas de trabalho
Sketcher, PartDesign
Atalho padrão
Nenhum
Introduzido na versão
-
Veja também
Constraint Vertical, Constraint Horizontal

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.

ConstrainParallel1.png

Select both lines by clicking successively on each of them.

ConstrainParallel2.png

Apply the Constrain Parallel constraint by either:

  • Pressing the Sketcher ConstrainParallel.svg Constrain parallel button from the Sketcher constraints toolbar.
  • Use the P keyboard shortcut.
  • Use the Sketch → Sketcher constraints → Sketcher ConstrainParallel.svg Constrain parallel entry from the top menu.

ConstrainParallel3.png

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 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.