Draft: Linea, segmento
Linea |
Posizione nel menu |
---|
Draft → Linea |
Ambiente |
Draft, Architettura |
Avvio veloce |
L I |
Introdotto nella versione |
- |
Vedere anche |
DWire |
Crea un segmento tra due punti nel piano di lavoro corrente. Il segmento assume il tipo di linea e il colore impostati in precedenza nella Barra dei comandi e modificabili tramite la stessa o nella scheda Vista combinata → Proprietà → Vista. Lo strumento Linea si comporta esattamente come lo strumento DWire di Draft, tranne che si disattiva dopo che sono stati definiti due punti.
Utilizzo
- Premere il pulsante Template:KEY/it o premere i tasti Template:KEY/it e Template:KEY/it
- Fare clic su un primo punto nella vista 3D, o digitare le sue coordinate
- Fare clic su un secondo punto nella vista 3D, o digitare le sue coordinate
The line can be edited by double clicking on the element in the tree view, or by pressing the Draft Edit button. Then you can move the points to a new position.
Fusing single lines
If several connected Draft Lines are selected they can be fused into a wire by pressing the Draft Upgrade tool; however, this wire will not be editable. To create an editable wire, use Draft Upgrade three more times on the new shapes (wire, closed wire, face). You can also fuse the original lines with the Draft Wire tool.
A wire can also be created from a single line by adding another point anywhere along its length. To do this, press the add point button, and click anywhere on the line.
Opzioni
- Premere Template:KEY/it, Template:KEY/it o Template:KEY/it e muovere il puntatore nell'area grafica dopo il primo punto per vincolare il secondo punto su uno specifico asse. In questo caso rimane attivo solo il campo corrispondente all'asse selezionato e in esso è mostrata la posizione corrente del cursore.
- Per inserire le coordinate manualmente, è sufficiente inserire il loro valore, poi premere Template:KEY/it per ogni componente X, Y e Z. In questo caso è bene tenere il puntatore del mouse fuori dall'area di lavoro in quanto un suo movimento accidentale cattura e inserisce nel campo di input le coordinate a cui si trova e costringe a ripetere l'inserimento.
- Premere Template:KEY/it oppure fare clic sulla casella di controllo per selezionare o deselezionare la modalità Template:KEY/it. In modalità Relativo, le coordinate del secondo punto sono relative al primo. In caso contrario, sono assolute, a partire dal punto di origine (0,0,0).
- Premere Template:KEY/it oppure fare clic sulla casella di controllo per selezionare o deselezionare la modalità Template:KEY/it. In modalità Continua, al termine dell'operazione, lo strumento Linea si riavvia automaticamente e permette di disegnare un nuovo segmento senza dover ripetere il comando. I diversi segmenti costruiti in questo modo sono oggetti indipendenti, a differenza di quelli costruiti con DWire che sono invece parte di una unica polilinea.
- Premere Template:KEY/it mentre si disegna per ancorare il proprio punto al punto agganciabile più vicino, indipendentemente dalla distanza.
- Premere Template:KEY/it mentre si disegna per vincolare orizzontalmente o verticalmente il secondo punto rispetto al primo.
- Premere Template:KEY/it+Template:KEY/it o premere il pulsante Annulla per annullare l'ultimo punto inserito. Questa opzione permette di annullare a ritroso tutti punti inseriti.
- Premere Template:KEY/it o premere il pulsante Template:KEY/it per uscire dal comando Linea attivo.
- Se sono selezionate diverse Linee Draft connesse, esse possono essere trasformate in una unica polilinea premendo il pulsante Promuovi.
Proprietà
Vista
Sono disponibili le Proprietà standard di visualizzazione.
Dati
File:DraftLineOptions it.png |
Template:KEY/it
|
Data
- DatiStart: specifies the start point.
- DatiEnd: specifies the end point.
- DatiSubdivisions: specifies the number of interior nodes in the line. introduced in version 0.16
- DatiLength: (read-only) specifies the length of the segment.
View
- VistaEnd Arrow: if it is
true
it will display a symbol at the last point of the line, so it can be used as an annotation line. - VistaArrow Size: specifies the size of the symbol displayed at the end of the line.
- VistaArrow Type: specifies the type of symbol displayed at the end of the line, which can be "Dot", "Circle", "Arrow", or "Tick".
Script
Lo strumento Linea può essere utilizzato nelle macro e dalla console Python tramite la seguente funzione:
The Line tool can be used in macros and from the Python console by using the following function:
Line = makeLine(p1, p2)
Line = makeLine(LineSegment)
Line = makeLine(Shape)
- Crea un oggetto
Linea
tra i puntip1
ep2
, ciascuno definito come unFreeCAD.Vector
- Crea un oggetto
Linea
da unPart.LineSegment
- Crea un oggetto
Linea
dal primo vertice all'ultimo vertice dellaShape
data - Usa lo stile di linea corrente
Esempio:
import FreeCAD, Draft
p1 = FreeCAD.Vector(0, 0, 0)
p2 = FreeCAD.Vector(1000, 500, 0)
p3 = FreeCAD.Vector(-250, -500, 0)
p4 = FreeCAD.Vector(500, 1000, 0)
Line1 = Draft.makeLine(p1, p2)
Line2 = Draft.makeLine(p3, p4)
- Drafting: Line, Polyline, Fillet, Arc, Arc by 3 points, Circle, Ellipse, Rectangle, Polygon, B-spline, Cubic Bézier curve, Bézier curve, Point, Facebinder, ShapeString, Hatch
- Annotation: Text, Dimension, Label, Annotation styles, Annotation scale
- Modification: Move, Rotate, Scale, Mirror, Offset, Trimex, Stretch, Clone, Array, Polar array, Circular array, Path array, Path link array, Point array, Point link array, Edit, Subelement highlight, Join, Split, Upgrade, Downgrade, Wire to B-spline, Draft to sketch, Set slope, Flip dimension, Shape 2D view
- Draft Tray: Select plane, Set style, Toggle construction mode, AutoGroup
- Snapping: Snap lock, Snap endpoint, Snap midpoint, Snap center, Snap angle, Snap intersection, Snap perpendicular, Snap extension, Snap parallel, Snap special, Snap near, Snap ortho, Snap grid, Snap working plane, Snap dimensions, Toggle grid
- Miscellaneous: Apply current style, Layer, Manage layers, Add a new named group, Move to group, Select group, Add to construction group, Toggle normal/wireframe display, Create working plane proxy, Heal, Show snap toolbar
- Additional: Constraining, Pattern, Preferences, Import Export Preferences, DXF/DWG, SVG, OCA, DAT
- Context menu:
- Layer container: Merge layer duplicates, Add new layer
- Layer: Activate this layer, Select layer contents
- Text: Open hyperlinks
- Wire: Flatten
- Working plane proxy: Write camera position, Write objects state
- 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