Draft: Polilinea
DWire |
Posizione nel menu |
---|
Draft → Polilinea |
Ambiente |
Draft, Architettura |
Avvio veloce |
W I |
Introdotto nella versione |
0.7 |
Vedere anche |
Draft → Linea, Draft → BSpline |
Descrizione
Questo strumento crea una polilinea (una sequenza di segmenti) nel piano di lavoro corrente. La polilinea assume il tipo di linea e il colore impostati in precedenza nella Barra dei comandi Draft Tray. Lo strumento DWire si comporta come lo strumento Linea, con la differenza che consente di inserire più di due punti.
Lo strumento BSpline si comporta come lo strumento Wire (Polilinea), eccetto che ciascuno dei suoi segmenti è curvo invece di essere una linea retta. Usare Polilinea in B-spline per convertire l'uno con l'altro.
Polilinea definita da più punti
Utilizzo
- Premere il pulsante Polilinea, o premere i tasti W e I.
- Selezionare il primo punto nella vista 3D, o digitare le coordinate e premere il pulsante aggiungi punto.
- Selezionare un punto successivo nella vista 3D, o digitare le coordinate e premere il pulsante aggiungi punto.
- Premere Esc o il pulsante Close per completare l'editazione.
La polilinea può essere modificata facendo doppio clic sull'elemento nella vista ad albero o premendo il pulsante Modifica. Quindi si può spostare i punti in una nuova posizione o fare clic su aggiungi punto o rimuovi punto e quindi fare clic sul wire per aggiungere o rimuovere punti.
Unire singole linee
Se vengono selezionati più Linee collegate quando si preme il pulsante Polilinea, esse vengono trasformate in una polilinea e si esce dal comando. disponibile dalla versione 0.17
Note: i punti finali delle linee devono essere esattamente a contatto o non si uniscono. Se necessario, regolare manualmente le Coordinate dei punti di inizio e fine delle linee, o Agganciare i punti con la modalità Punto finale per rendere i nodi coincidenti.
Opzioni
- Se sono selezionate diverse Linee Draft connesse, quando si preme il pulsante Draft Wire esse vengono trasformate in una polilinea e si esce dal comando. introduced in version 0.17
- Premere Template:KEY/it o il pulsante Template:KEY/it per interrompere il disegno del contorno, lasciandolo aperto
- Premere Template:KEY/it o il pulsante Template:KEY/it o selezionare il primo punto per chiudere il contorno collegando l'ultimo punto con il primo.
- 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. E' 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 DWire si riavvia automaticamente e permette di disegnare una nuova polilinea senza dover ripetere il comando.
- 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 o il pulsante Template:KEY/it per rimuovere i segmenti esistenti e avviare la polilinea dall'ultimo punto.
- Premere Template:KEY/it+Template:KEY/it o premere il pulsante Template:KEY/it per annullare l'ultimo punto inserito. Questa opzione permette di annullare a ritroso tutti i punti di una Spezzata.
- Premere ilo tasto Template:KEY/it o il pulsante Template:KEY/it per far apparire il contorno come una faccia se è stato chiuso.
- Premere Template:KEY/it o premere il pulsante Template:KEY/it per uscire dal comando DWire attivo.
- Un contorno chiuso, quando è rappresentato in modalità "Flat Lines", può contenere un tratteggio, impostando le sue proprietà "Pattern" sottostanti.
Proprietà
Un oggetto Polilinea condivide tutte le proprietà di una Linea, tuttavia, la maggior parte delle proprietà ha senso solo per una Polilinea.
Data
- DatiStart: specifies the first point in the wire.
- DatiEnd: specifies the last point in the wire, not counting the initial point if the wire is closed.
- DatiClosed: specifies if the wire is closed or not. If the wire is initially open, this value is
false
; setting it totrue
will draw a line segment to close the wire. If the wire is initially closed, this value istrue
; setting it tofalse
will remove the last line segment, and make the wire open. - DatiChamfer Size: specifies the size of the chamfers (straight segments) created on the corners of the wire.
- DatiFillet Radius: specifies the radius of the fillets (arc segments) created on the corners of the wire.
- DatiMake Face: specifies if the wire makes a face or not. If it is
true
a face is created, otherwise only the edges are considered part of the object. This property only works if DatiClosed istrue
.
- Note: do not set DatiMake Face to
true
if the wire intersects itself, as it won't create a proper face.
- DatiSubdivisions: specifies the number of interior nodes in each segment of the wire. introduced in version 0.16
- DatiLength: (read-only) specifies the length of the entire wire.
View
- VistaEnd Arrow: if it is
true
it will display a symbol at the last point of the wire, so it can be used as an annotation line. - VistaArrow Size: specifies the size of the symbol displayed at the end of the wire.
- VistaArrow Type: specifies the type of symbol displayed at the end of the wire, which can be "Dot", "Circle", "Arrow", or "Tick".
- VistaPattern: specifies a Draft Pattern with which to fill the face of the closed wire. This property only works if DatiMake Face is
true
, and if VistaDisplay Mode is "Flat Lines". - VistaPattern Size: specifies the size of the Draft Pattern.
Script
Per maggiori informazioni vedere Script di base per FreeCAD
Lo strumento DWire può essere utilizzato nelle macro e dalla console Python tramite la seguente funzione:
Wire = makeWire(pointslist, closed=False, placement=None, face=None, support=None)
Wire = makeWire(Part.Wire, closed=False, placement=None, face=None, support=None)
- Crea un oggetto
Wire
con l'elenco di punti indicato,pointslist
- Ogni punto nella lista è definito dal suo
FreeCAD.Vector
- In alternativa, l'input può essere un
Part.Wire
, da cui vengono estratti i punti
- In alternativa, l'input può essere un
- Se
closed
èTrue
, o se il primo e l'ultimo punto sono identici, il contorno è chiuso - Se
face
èTrue
, e il contorno è chiuso, il contorno è una faccia, cioè appare pieno - Usa il corrente Stile di linea
Esempio:
import FreeCAD, Draft
p1 = FreeCAD.Vector(0, 0, 0)
p2 = FreeCAD.Vector(1000, 1000, 0)
p3 = FreeCAD.Vector(2000, 0, 0)
Wire1 = Draft.makeWire([p1, p2, p3], closed=True)
Wire2 = Draft.makeWire([p1, 2*p3, 1.3*p2], closed=True)
Wire3 = Draft.makeWire([1.3*p3, p1, -1.7*p2], closed=True)
- 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, Assembly, BIM, CAM, Draft, FEM, Inspection, Material, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Surface, TechDraw, Test Framework
- Hubs: User hub, Power users hub, Developer hub