Sketcher ConstrainDistance/it: Difference between revisions
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= |
|Name/it=Distanza |
||
|Workbenches=[[Sketcher Workbench/it|Schizzo]] |
|Workbenches=[[Sketcher Workbench/it|Schizzo]] |
||
|MenuLocation=Sketch → Vincolo → |
|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 |
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: |
|||
⚫ | |||
#* 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. |
|||
⚫ | |||
# 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}} |
|||
⚫ | |||
</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
- Selezionare due punti o una linea
- Richiamare il comando in uno di questi modi:
- Si apre una finestra di dialogo per modificare o confermare il valore. Premere OK per confermare.
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).
- introduced in version 1.0: Select the edge of a single arc.
- Invoke the tool as explained above.
- Optionally edit the constraint value.
- 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.
- General: Create sketch, Edit sketch, Map sketch to face, Reorient sketch, Validate sketch, Merge sketches, Mirror sketch, Leave sketch, View sketch, View section, Toggle grid, Toggle snap, Configure rendering order, Stop operation
- Sketcher geometries: Point, Line, Arc, Arc by 3 points, Circle, Circle by 3 points, Ellipse, Ellipse by 3 points, Arc of ellipse, Arc of hyperbola, Arc of parabola, B-spline by control points, Periodic B-spline by control points, B-spline by knots, Periodic B-spline by knots, Polyline, Rectangle, Centered rectangle, Rounded rectangle, Triangle, Square, Pentagon, Hexagon, Heptagon, Octagon, Regular polygon, Slot, Fillet, Corner-preserving fillet, Trim, Extend, Split, External geometry, Carbon copy, Toggle construction geometry
- Sketcher constraints:
- Geometric constraints: Coincident, Point on object, Vertical, Horizontal, Parallel, Perpendicular, Tangent, Equal, Symmetric, Block
- Dimensional constraints: Lock, Horizontal distance, Vertical distance, Distance, Radius or weight, Diameter, Auto radius/diameter, Angle, Refraction (Snell's law)
- Constraint tools: Toggle driving/reference constraint, Activate/deactivate constraint
- Sketcher tools: Select unconstrained DoF, Select associated constraints, Select associated geometry, Select redundant constraints, Select conflicting constraints, Show/hide internal geometry, Select origin, Select horizontal axis, Select vertical axis, Symmetry, Clone, Copy, Move, Rectangular array, Remove axes alignment, Delete all geometry, Delete all constraints
- Sketcher B-spline tools: Show/hide B-spline degree, Show/hide B-spline control polygon, Show/hide B-spline curvature comb, Show/hide B-spline knot multiplicity, Show/hide B-spline control point weight, Convert geometry to B-spline, Increase B-spline degree, Decrease B-spline degree, Increase knot multiplicity, Decrease knot multiplicity, Insert knot, Join curves
- Sketcher virtual space: Switch virtual space
- Additional: Sketcher Dialog, Preferences, Sketcher scripting
- Getting started
- Installation: Download, Windows, Linux, Mac, Additional components, Docker, AppImage, Ubuntu Snap
- Basics: About FreeCAD, Interface, Mouse navigation, Selection methods, Object name, Preferences, Workbenches, Document structure, Properties, Help FreeCAD, Donate
- Help: Tutorials, Video tutorials
- Workbenches: Std Base, Arch, Assembly, CAM, Draft, FEM, Inspection, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Surface, TechDraw, Test Framework
- Hubs: User hub, Power users hub, Developer hub