Sketcher ConstrainParallel/fr: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
(Updating to match new version of source page)
(4 intermediate revisions by one other user not shown)
Line 17: Line 17:
|Workbenches=[[Sketcher_Workbench/fr|Sketcher]]
|Workbenches=[[Sketcher_Workbench/fr|Sketcher]]
|Shortcut={{KEY|P}}
|Shortcut={{KEY|P}}
|SeeAlso=[[Sketcher_ConstrainVertical/fr|Sketcher Contrainte verticale]], [[Sketcher_ConstrainHorizontal/fr|Sketcher Contrainte horizontale]]
|SeeAlso=[[Sketcher_ConstrainHorVer/fr|Sketcher Contrainte horizontale/verticale]]
}}
}}
</div>
</div>
Line 24: Line 24:


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
La Contrainte parallèle force deux éléments sélectionnés, lignes droites ou arêtes à devenir parallèles.
La commande [[Image:Sketcher_ConstrainParallel.svg|24px]] [[Sketcher_ConstrainParallel/fr|Sketcher Contrainte parallèle]] contraint les lignes à être parallèles.
</div>
</div>


==Usage==
<span id="Usage"></span>
==Utilisation==


See also: [[Sketcher_Workbench#Drawing_aids|Drawing aids]].
# Optionally select two or more lines.

# There are several ways to invoke the command:
===[[Sketcher_Workbench#Continue_modes|Continue mode]]===
#* Press the {{Button|[[Image:Sketcher_ConstrainParallel.svg|16px]] [[Sketcher_ConstrainParallel|Constrain parallel]]}} button.

#* Select the {{MenuCommand|Sketch Sketcher constraints [[Image:Sketcher_ConstrainParallel.svg|16px]] Constrain parallel}} option from the menu.
<div class="mw-translate-fuzzy">
#* Use the keyboard shortcut: {{KEY|P}}.
# Vous pouvez sélectionner deux lignes ou plus.
# To indicate that the command has been activated the cursor changes to a white cross with the command icon.
# Il y a plusieurs façons de lancer la commande :
# Optionally keep selecting elements. You can only select two lines at a time now.
#* Appuyez sur le bouton {{Button|[[Image:Sketcher_ConstrainParallel.svg|16px]] [[Sketcher_ConstrainParallel/fr|Contrainte parallèle]]}}.
# To finish the command press {{KEY|Esc}} or the right mouse button, or start a another constraints or geometries command.
#* Sélectionnez l'option {{MenuCommand|Esquisse → Contraintes d'esquisse → [[Image:Sketcher_ConstrainParallel.svg|16px]] Contrainte parallèle}} du menu.
#* Utilisez le raccourci clavier : {{KEY|P}}.
# Pour indiquer que la commande a été activée, le curseur se transforme en une croix blanche avec l'icône de la commande.
# Vous pouvez continuer à sélectionner des éléments. Vous ne pouvez sélectionner que deux lignes à la fois pour le moment.
# Pour terminer la commande, appuyez sur {{KEY|Echap}} ou sur le bouton droit de la souris, ou lancez une autre commande de contraintes ou de géométries.
</div>

===Run-once mode===

# Select two or more lines. {{Version|1.0}}: Points can be included in the selection, but will be ignored.
# Invoke the tool as explained above, or with the following additional option:
#* {{Version|1.0}}: Right-click in the [[3D_view|3D view]] and select the {{MenuCommand|[[Image:Sketcher_ConstrainParallel.svg|16px]] Constrain parallel}} option from the context menu.
# Depending on the selection one or more constraints are added.


<span id="Scripting"></span>
<span id="Scripting"></span>

Revision as of 14:56, 23 April 2024

Sketcher Contrainte parallèle

Emplacement du menu
Esquisse → Contraintes d'esquisse → Contrainte parallèle
Ateliers
Sketcher
Raccourci par défaut
P
Introduit dans la version
-
Voir aussi
Sketcher Contrainte horizontale/verticale

Description

La commande Sketcher Contrainte parallèle contraint les lignes à être parallèles.

Utilisation

See also: Drawing aids.

Continue mode

  1. Vous pouvez sélectionner deux lignes ou plus.
  2. Il y a plusieurs façons de lancer la commande :
    • Appuyez sur le bouton Contrainte parallèle.
    • Sélectionnez l'option Esquisse → Contraintes d'esquisse → Contrainte parallèle du menu.
    • Utilisez le raccourci clavier : P.
  3. Pour indiquer que la commande a été activée, le curseur se transforme en une croix blanche avec l'icône de la commande.
  4. Vous pouvez continuer à sélectionner des éléments. Vous ne pouvez sélectionner que deux lignes à la fois pour le moment.
  5. Pour terminer la commande, appuyez sur Echap ou sur le bouton droit de la souris, ou lancez une autre commande de contraintes ou de géométries.

Run-once mode

  1. Select two or more lines. introduced in version 1.0: Points can be included in the selection, but will be ignored.
  2. Invoke the tool as explained above, or with the following additional option:
  3. Depending on the selection one or more constraints are added.

Script

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

La page Sketcher Scripts explique les valeurs qui peuvent être utilisées pour Line1 et Line2 et contient d'autres exemples sur la façon de créer des contraintes à partir de scripts Python.