Sketcher ConstrainDistanceY/it: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
(Updating to match new version of source page)
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
<languages/>
<languages/>

<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
{{Docnav/it|[[Sketcher ConstrainDistanceX/it|Distanza orizzontale]]|[[Sketcher_ConstrainDistance/it|Distanza]]|[[Sketcher_Workbench/it|Sketcher]]|IconL=Constraint_HorizontalDistance.svg‎|IconC=Workbench_Sketcher.svg|IconR=Constraint_Length.png}}
{{Docnav/it|[[Sketcher ConstrainDistanceX/it|Distanza orizzontale]]|[[Sketcher_ConstrainDistance/it|Distanza]]|[[Sketcher_Workbench/it|Sketcher]]|IconL=Constraint_HorizontalDistance.svg‎|IconC=Workbench_Sketcher.svg|IconR=Constraint_Length.png}}
Line 14: Line 15:
</div>
</div>


<span id="Description"></span>
==Descrizione==
==Descrizione==


<div class="mw-translate-fuzzy">
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.
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.
</div>


[[File:Sketcher ConstraintDistanceY example.png]]
[[File:Sketcher ConstraintDistanceY example.png]]


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

See also: [[Sketcher_Workbench#Drawing_aids|Drawing aids]].

===[[Sketcher_Workbench#Continue_modes|Continue mode]]===


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
Line 31: Line 40:
</div>
</div>


===Run-once mode===
<div class="mw-translate-fuzzy">

'''Nota:''' lo strumento di vincolo può essere avviato anche senza selezione precedente, ma richiede la selezione di due punti o una linea. Per impostare la distanza dall'origine, è necessario selezionare anche il punto di origine dello schizzo. Di default il comando è in modalità continua per creare nuovi vincoli; per uscire dal comando premere il tasto destro del mouse o una volta il tasto {{KEY|ESC}}.
See [[Sketcher_ConstrainDistanceX#Run-once_mode|Sketcher ConstrainDistanceX]].
</div>

== Scripting ==

Distance from origin:

{{Code|code=Sketch.addConstraint(Sketcher.Constraint('DistanceY', Edge, PointOfEdge, -1, 1, App.Units.Quantity('123.0 mm')))}}

Distance between two vertices:

{{Code|code=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):

{{Code|code=Sketch.addConstraint(Sketcher.Constraint('DistanceY', Line, 1, Line, 2, App.Units.Quantity('123.0 mm')))}}

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



<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
Line 39: Line 65:
</div>
</div>


{{Sketcher Tools navi{{#translation:}}}}
{{Sketcher_Tools_navi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{clear}}

Latest revision as of 07:38, 3 May 2024

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.