Sketcher: Vincolo Distanza orizzontale

From FreeCAD Documentation
This page is a translated version of the page Sketcher ConstrainDistanceX and the translation is 18% complete.
Outdated translations are marked like this.

Distanza orizzontale

Posizione nel menu
Sketch → Vincolo → Distanza orizzontale
Ambiente
Sketcher
Avvio veloce
Maiusc + H
Introdotto nella versione
-
Vedere anche
Distanza, Distanza verticale

Descrizione

Fissa una distanza orizzontale tra due punti. È applicabile tra tutti i punti dello schizzo. Quando viene selezionato un solo punto la distanza è riferita all'origine.

Utilizzo

See also: Drawing aids.

Continue mode

  1. Selezionare due punti o una linea
  2. Richiamare il comando in uno di questi modi:
    • Cliccare sull'icona Distanza orizzontale della barra degli strumenti.
    • Usare la scorciatoia da tastiera Maiusc + H.
    • Usare la voce Sketch → Vincoli → Distanza orizzontale dal menu principale.
  3. Si apre una finestra di dialogo per modificare o confermare il valore. Premere OK per confermare.

Run-once mode

  1. Do one of the following:
    • Select one or two points.
    • Select a single line.
  2. Invoke the tool as explained above.
  3. Optionally edit the constraint value.
  4. A constraint is added.

Scripting

Distance from origin:

Sketch.addConstraint(Sketcher.Constraint('DistanceX', Edge, PointOfEdge, -1, 1, App.Units.Quantity('123.0 mm')))

Distance between two vertices:

Sketch.addConstraint(Sketcher.Constraint('DistanceX', Edge1, PointOfEdge1, Edge2, PointOfEdge2, App.Units.Quantity('123.0 mm')))

Horizontal span of line (the GUI allows selecting the edge itself, but it is just a shorthand for using the two extremities of the same line):

Sketch.addConstraint(Sketcher.Constraint('DistanceX', Line, 1, Line, 2, App.Units.Quantity('123.0 mm')))

The Sketcher scripting page explains the values which can be used for Edge, Edge1, Edge2, PointOfEdge, PointOfEdge1, PointOfEdge2 and Line, and contains further examples on how to create constraints from Python scripts.