Sketcher: Vincolo Distanza verticale

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

Distanza Verticale

Posizione nel menu
Sketch → Vincoli → Distanza verticale
Ambiente
Sketcher
Avvio veloce
Shift+V
Introdotto nella versione
-
Vedere anche
Distanza Orizzontale, Distanza

Descrizione

Fissa una distanza verticale 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 verticale della barra degli strumenti.
    • Usare la scorciatoia da tastiera Maiusc + V.
    • Usare la voce Sketch → Vincoli → Distanza verticale dal menu principale.
  3. Si apre una finestra di dialogo per modificare o confermare il valore. Premere OK per confermare.

Run-once mode

See Sketcher ConstrainDistanceX.

Scripting

Distance from origin:

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

Distance between two vertices:

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

Vertical 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('DistanceY', 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.