Sketcher ConstrainDistance/it: Difference between revisions

From FreeCAD Documentation
No edit summary
(Updating to match new version of source page)
 
(32 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<languages/>
<languages/>

<div class="mw-translate-fuzzy">
{{Docnav/it|[[Sketcher_ConstrainDistanceY/it|Distanza verticale]]|[[Sketcher_ConstrainRadius/it|Raggio]]|[[Sketcher_Workbench/it|Sketcher]]|IconL=Constraint_VerticalDistance.svg|IconC=Workbench_Sketcher.svg|IconR=Constraint_Radius.png}}
</div>

<div class="mw-translate-fuzzy">
{{GuiCommand/it
{{GuiCommand/it
|Name=Sketcher ConstrainDistance
|Name=Sketcher ConstrainDistance
|Name/it=Lunghezza
|Name/it=Distanza
|Workbenches=[[Sketcher Workbench/it|Schizzo]]
|Workbenches=[[Sketcher Workbench/it|Schizzo]]
|MenuLocation=Sketch → Vincolo → Lunghezza
|MenuLocation=Sketch → Vincolo → Distanza
|Shortcut={{KEY|Maiusc}} + {{KEY|D}}
|SeeAlso=[[Sketcher ConstrainDistanceX/it|Distanza Orizzontale]], [[Sketcher ConstrainDistanceY/it|Distanza Verticale]]
|SeeAlso=[[Sketcher ConstrainDistanceX/it|Distanza Orizzontale]], [[Sketcher ConstrainDistanceY/it|Distanza Verticale]]
}}
}}
</div>


==Description==

<div class="mw-translate-fuzzy">
==Descrizione==
==Descrizione==
Il vincolo Lunghezza impone la lunghezza di una linea, la distanza perpendicolare tra un punto e una linea o la distanza tra due punti ad assumere un valore specifico.
Il vincolo '''Distanza''' impone alla lunghezza di una linea, alla distanza perpendicolare tra un punto e una linea o alla distanza tra due punti di assumere un valore specifico.
</div>

[[Image:Sketcher_ConstrainDistance_example.png]]

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

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

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

<div class="mw-translate-fuzzy">
# Selezionare due punti o una linea
# Richiamare il comando in uno di questi modi:
#* Cliccare sull'icona {{KEY|[[File:Sketcher ConstrainDistance.png|24px]] '''Distanza'''}} della barra degli strumenti.
#* Usare la scorciatoia da tastiera {{KEY|Maiusc}} + {{KEY|D}}.
#* Usare la voce {{MenuCommand|Sketch → Vincoli → Distanza}} dal menu principale.
# Si apre una finestra di dialogo per modificare o confermare il valore. Premere {{KEY|OK}} per confermare.
</div>

===Run-once mode===

# Do one of the following:
#* Select a single line.
#* Select two points.
#* Select a point and a line (in any order).
#* Select the edges of two circles or arcs.
#* Select the edge of a circle or arc and a line (idem).
#* {{Version|1.0}}: Select the edge of a single arc.
# Invoke the tool as explained above.
# Optionally [[Sketcher_Workbench#Edit_constraints|edit the constraint value]].
# A constraint is added.

==Notes==

<div class="mw-translate-fuzzy">
===Suggerimento===
Quando sono applicabili conviene usare il vincolo {{Button|[[File:Sketcher ConstrainDistanceX.svg|16px]] [[Sketcher ConstrainDistanceX/it|Distanza Orizzontale]]}} o il vincolo {{Button|[[File:Sketcher ConstrainDistanceY.svg|16px]] [[Sketcher ConstrainDistanceY/it|Distanza Verticale]]}}. Questi vincoli sono più robusti e più veloci da calcolare rispetto al vincolo di Lunghezza documentato qui.
</div>

== Scripting ==

Distance from origin:

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

Distance between two vertices:

{{Code|code=Sketch.addConstraint(Sketcher.Constraint('Distance', Edge1, PointOfEdge1, Edge2, PointOfEdge2, App.Units.Quantity('123.0 mm')))}}

Length 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('Distance', Line, 1, Line, 2, App.Units.Quantity('123.0 mm')))}}

Distance from point ({{incode|Edge, PointOfEdge}}) to perpendicular point on line ({{incode|Line}}):

{{Code|code=Sketch.addConstraint(Sketcher.Constraint('Distance', Edge, PointOfEdge, Line, 0, App.Units.Quantity('123.0 mm')))}}


Distance between the edges of two circles:
[[File:Sketcher ConstrainDistance example.png|none]]


{{Code|code=Sketch.addConstraint(Sketcher.Constraint('Distance', Circle1, 0, Circle2, 0, App.Units.Quantity('123.0 mm')))}}
==How to use==


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}}, {{incode|Line}}, {{incode|Circle1}} and {{incode|Circle2}}, and contains further examples on how to create constraints from Python scripts.
# Pick two points or one line or one point and one line.
# Press the {{KEY|[[File:Sketcher ConstrainDistance.png|24px]] '''Constrain distance'''}} button.
# A pop up dialog opens to edit or confirm the value. Press {{KEY|OK}} to validate.


'''Note:''' the constraint tool can also be started with no prior selection. To set the perpendicular distance between a point and a line, the point needs to be selected first. By default the command will be in continue mode to create new constraints; press the right mouse button or {{KEY|ESC}} once to quit the command.


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
{{Docnav/it|[[Sketcher_ConstrainDistanceY/it|Distanza verticale]]|[[Sketcher_ConstrainRadius/it|Raggio]]|[[Sketcher_Workbench/it|Sketcher]]|IconL=Constraint_VerticalDistance.svg|IconC=Workbench_Sketcher.svg|IconR=Constraint_Radius.png}}
Quando sono applicabili conviene usare il vincolo [[Constraint_HorizontalDistance/it|Distanza Orizzontale]] o il vincolo [[Constraint_VerticalDistance/it|Distanza Verticale]]. Questi vincoli sono più robusti e più veloci da calcolare rispetto al vincolo di Lunghezza documentato qui.
</div>
</div>


{{Sketcher_Tools_navi{{#translation:}}}}
{{clear}}
{{Userdocnavi{{#translation:}}}}

Latest revision as of 15:11, 23 April 2024

Distanza

Posizione nel menu
Sketch → Vincolo → Distanza
Ambiente
Schizzo
Avvio veloce
Maiusc + D
Introdotto nella versione
-
Vedere anche
Distanza Orizzontale, Distanza Verticale

Description

Descrizione

Il vincolo Distanza impone alla lunghezza di una linea, alla distanza perpendicolare tra un punto e una linea o alla distanza tra due punti di assumere un valore specifico.

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 della barra degli strumenti.
    • Usare la scorciatoia da tastiera Maiusc + D.
    • Usare la voce Sketch → Vincoli → Distanza 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 a single line.
    • Select two points.
    • Select a point and a line (in any order).
    • Select the edges of two circles or arcs.
    • Select the edge of a circle or arc and a line (idem).
    • introduced in version 1.0: Select the edge of a single arc.
  2. Invoke the tool as explained above.
  3. Optionally edit the constraint value.
  4. A constraint is added.

Notes

Suggerimento

Quando sono applicabili conviene usare il vincolo Distanza Orizzontale o il vincolo Distanza Verticale. Questi vincoli sono più robusti e più veloci da calcolare rispetto al vincolo di Lunghezza documentato qui.

Scripting

Distance from origin:

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

Distance between two vertices:

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

Length 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('Distance', Line, 1, Line, 2, App.Units.Quantity('123.0 mm')))

Distance from point (Edge, PointOfEdge) to perpendicular point on line (Line):

Sketch.addConstraint(Sketcher.Constraint('Distance', Edge, PointOfEdge, Line, 0, App.Units.Quantity('123.0 mm')))

Distance between the edges of two circles:

Sketch.addConstraint(Sketcher.Constraint('Distance', Circle1, 0, Circle2, 0, App.Units.Quantity('123.0 mm')))

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