Ambiente Draft
Introduzione
L' Ambiente Draft si concentra principalmente sulla creazione e modifica di oggetti 2D in FreeCAD. Ma non è limitato al piano XY del sistema di coordinate globale. I suoi oggetti possono avere qualsiasi orientamento e posizione nello spazio 3D e alcuni oggetti Draft possono essere planari o non planari.
Gli oggetti Draft possono essere utilizzati per il disegno generale, in modo simile a quanto si può fare con Inkscape o AutoCAD. Ma possono anche costituire la base per la creazione di oggetti 3D in altri banchi di lavoro. Una Polilinea può definire il percorso di un Muro, un Poligono può essere estruso con Estruzione, ecc. Molti degli strumenti di Modifica possono essere comunque applicati agli oggetti 2D e 3D creati con altri ambienti di lavoro. Ad esempio, puoi spostare uno Sketch o creare una Serie Ortogonale da un oggetto Part.
The Draft Workbench also provides tools to define a working plane, a grid, and a snapping system to precisely control the position of geometry.
FreeCAD è principalmente un'applicazione di modellazione 3D, quindi i suoi strumenti 2D non sono così avanzati come in altri programmi di disegno. Se l'obiettivo principale è la produzione di disegni 2D complessi e di file DXF, e non si ha bisogno di modelli 3D, si può prendere in considerazione un programma software dedicato al disegno tecnico come LibreCAD, QCad, e altri.
The image shows the grid aligned with the XY plane.
On the left, in white, several planar objects.
On the right a non-planar Draft Wire used as the Path Object of a Draft PathArray.
Drafting
- Line: creates a straight line.
- Polyline: creates a polyline, a sequence of several connected line segments.
- Fillet: creates a fillet, a rounded corner, or a chamfer, a straight edge, between two Draft Lines. introduced in version 0.19
- Arc: creates a circular arc from a center, a radius, a start angle and an aperture angle.
- Arc by 3 points: creates a circular arc from three points that define its circumference. introduced in version 0.19
- Circle: creates a circle from a center and a radius.
- Ellipse: creates an ellipse from two points defining a rectangle in which the ellipse will fit.
- Rectangle: creates a rectangle from two points.
- Polygon: creates a regular polygon from a center and a radius.
- B-spline: creates a B-spline curve from several points.
- Cubic Bézier curve: creates a Bézier curve of the third degree. introduced in version 0.19
- Bézier curve: creates a Bézier curve from several points.
- Point: creates a simple point.
- Facebinder: creates a surface object from selected faces.
- ShapeString: creates a compound shape that represents a text string.
- Hatch: creates hatches on the planar faces of a selected object. introduced in version 0.20
Annotation
- Text: creates a multi-line text at a given point.
- Dimension: creates a linear dimension, a radial dimension or an angular dimension.
- Label: creates a multi-line text with a 2-segment leader line and an arrow.
- Annotation styles...: allows you to define styles that affect the visual properties of annotation-like objects. introduced in version 0.19
Modificare
- Move: moves or copies selected objects from one point to another.
- Rotate: rotates or copies selected objects around a center point by a given angle.
- Scale: scales or copies selected objects around a base point.
- Mirror: creates mirrored copies from selected objects.
- Offset: offsets each segment of a selected object over a given distance, or creates an offset copy of the selected object.
- Trimex: trims or extends a selected object.
- Stretch: stretches objects by moving selected points.
- Clone: creates linked copies, clones, of selected objects.
- Array: creates an orthogonal array from a selected object. It can optionally create a Link array. introduced in version 0.19
- Polar array: creates an array from a selected object by placing copies along a circumference. It can optionally create a Link array. introduced in version 0.19
- Circular array: creates an array from a selected object by placing copies along concentric circumferences. It can optionally create a Link array. introduced in version 0.19
- Path array: creates an array from a selected object by placing copies along a path.
- Path Link array: idem, but create a Link array instead of a regular array. introduced in version 0.19
- Point Array: creates an array from a selected object by placing copies at the points from a point compound.
- Point Link array: idem, but create a Link array instead of a regular array. introduced in version 0.19
- Edit: puts selected objects in Draft Edit mode. In this mode the properties of objects can be edited graphically.
- Subelement highlight: temporarily highlights selected objects, or the base objects of selected objects.
- Join: joins Draft Lines and Draft Wires into a single wire.
- Split: splits a Draft Line or Draft Wire at a specified point or edge.
- Upgrade: upgrades selected objects.
- Downgrade: downgrades selected objects.
- Wire to B-spline: converts Draft Wires to Draft BSplines and vice versa.
- Draft to Sketch: converts Draft objects to Sketcher Sketches and vice versa.
- Set slope: slopes selected Draft Lines or Draft Wires by increasing, or decreasing, the Z coordinate of all points after the first one.
- Flip dimension: rotates the dimension text of selected Draft Dimensions 180° around the dimension line.
- Shape 2D view: creates 2D projections from selected objects.
Barra degli strumenti del vassoio di Draft
La barra degli strumenti del vassoio di Draft viene visualizzata all'avvio dell'ambiiente e consente di selezionare il piano di lavoro, insieme ad alcune proprietà visive come il colore della linea, il colore della forma, la dimensione del testo, la larghezza della linea e il gruppo automatico.
- Piano di lavoro: consente di impostare un piano di lavoro da una vista standard o da una faccia selezionata..
- Modalità costruzione: attiva o disattiva la modalità costruzione.
- Imposta Stile: imposta lo stile di default per i nuovi oggetti e applica lo stile e il colore correnti agli oggetti selezionati.
- AutoGruppo: posiziona automaticamente i nuovi oggetti in un determinato Gruppo, Strato di Draft, o uno degli oggetti di Arch simili ai gruppi come Parte di edificio. disponibile dalla versione 0.17
- Set style: sets the default style for new objects. Also available in the menu: Draft → Utilities → Set style. introduced in version 0.19
- Toggle construction mode: switches Draft construction mode on or off. Also available in the menu: Draft → Utilities → Toggle construction mode.
- AutoGroup: changes the active Draft Layer or, optionally, the active Std Group or group-like Arch object.
Draft annotation scale widget
With the Draft annotation scale widget the Draft annotation scale can be specified. introduced in version 0.19
Draft snap widget
The Draft snap widget can be used as an alternative for the Draft Snap toolbar. introduced in version 0.19
Barra degli strumenti di aggancio
La barra degli strumenti di Aggancio consente di selezionare la modalità di aggancio corrente. Il suo pulsante rimane premuto quando una modalità è attiva.
- Snap Lock: enables or disables snapping globally.
- Snap Endpoint: snaps to the endpoints of edges.
- Snap Midpoint: snaps to the midpoint of edges.
- Snap Center: snaps to the center point of faces and circular edges, and to the DatiPlacement point of Draft WorkingPlaneProxies and Arch BuildingParts.
- Snap Angle: snaps to the special cardinal points on circular edges, at multiples of 30° and 45°.
- Snap Intersection: snaps to the intersection of two edges.
- Snap Perpendicular: snaps to the perpendicular point on edges.
- Snap Extension: snaps to an imaginary line that extends beyond the endpoints of straight edges.
- Snap Parallel: snaps to an imaginary line parallel to straight edges.
- Snap Special: snaps to special points defined by the object.
- Snap Near: snaps to the nearest point on faces or edges.
- Snap Ortho: snaps to imaginary lines that cross the previous point at 0°, 45°, 90° and 135°.
- Snap Grid: snaps to the intersections of grid lines.
- Snap WorkingPlane: projects the snap point onto the current working plane.
- Snap Dimensions: shows temporary X and Y dimensions.
- Toggle Grid: switches the grid on or off.
Strumenti di utilità
- Layer: creates a Draft Layer. introduced in version 0.19
- Add a new named group: creates a named Std Group and moves selected objects to that group. introduced in version 0.20
- Move to group...: moves objects to a Std Group. It can also ungroup objects.
- Select group: selects the contents of Std Groups or group-like Arch objects.
- Add to Construction group: moves objects to the Draft construction group.
- Toggle normal/wireframe display: switches the VistaDisplay Mode property of selected objects between
Flat Lines
andWireframe
.
- Create working plane proxy: creates a working plane proxy to save the current Draft working plane.
Menu di utilità
Strumenti aggiuntivi disponibili dal menu Draft → Utilità o tramite il menu di scelta rapida visualizzato facendo clic con il pulsante destro del mouse, a seconda dell'oggetto selezionato.
- Apply current style: applies the current style settings to selected objects.
- Heal: heals problematic Draft objects found in very old files.
- Toggle continue mode: switches continue mode on or off.
- Show snap toolbar: shows the Draft Snap toolbar.
Ulteriori funzioni
- Vincolare: limita il puntatore nei movimenti orizzontali o verticali rispetto a un punto precedente.
- Ancorare (Snap): posiziona nuovi punti su posti speciali su oggetti esistenti o sulla griglia.
- Modalità costruzione: Permette di creare geometrie separate dalle altre semplicemente attivandola o disattivandola.
- Piano di lavoro: consente di selezionare una superficie nello spazio 3D su cui lavorare.
The following additional options are available in the Tree view context menu:
Default options
If there is an active document the context menu contains one additional sub-menu:
- Utilities: a subset of the tools available in the main Draft Utilities menu.
Wire options
For a Draft Wire, Draft BSpline, Draft CubicBezCurve and Draft BezCurve this additional option is available:
- Flatten this wire: flattens the wire based on its internal geometry. This option currently does not work properly.
Layer container options
For a Draft LayerContainer these additional options are available:
- Merge layer duplicates: merges all layers with the same base label. This does not work in FreeCAD version 0.19.
- Add new layer: adds a new layer to the current document.
Layer options
For a Draft Layer these additional options are available:
- Activate this layer: activates the selected layer.
- Select layer contents: selects the objects inside the selected layer.
Working plane proxy options
For a Draft WorkingPlaneProxy these additional options are available:
- Write camera position: updates the VistaView Data property of the working plane proxy with the current 3D view camera settings.
- Write objects state: updates the VistaVisibility Map property of the working plane proxy with the current visibility state of objects in the document.
The following additional options are available in the 3D view context menu:
Default options
If there is an active document the context menu contains one additional sub-menu:
- Utilities: a subset of the tools available in the main Draft Utilities menu.
Obsoleti
Questi strumenti sono stati rimossi dall'interfaccia in v0.19 perché non avevano più alcuno scopo.
- Array: creates an orthogonal array from a selected object. The created array can be turned into a polar array or a circular array by changing its DatiArray Type property. obsolete in version 0.19
- Drawing: inserts views of selected objects into a drawing page. obsolete in version 0.17
Preferenze
- Preferenze: preferenze generali per il piano di lavoro e gli strumenti di disegno.
- Preferenze Import-Export: preferenze disponibili per l'importazione e l'esportazione in diversi formati di file.
- Import Export Preferences: preferences available for importing from and exporting to different file formats.
Formato dei file
Queste sono le funzioni per l'apertura, l'importazione o l'esportazione di altri formati di file. Il comando Apri apre un nuovo documento con i contenuti del file, mentre Importa aggiunge i contenuti del file al documento corrente. Esporta salva gli oggetti selezionati in un file. Se non viene selezionato nulla, vengono esportati tutti gli oggetti. Ricordare che lo scopo di Draft è di lavorare con oggetti 2D, quindi le procedure di importazione si concentrano solo su oggetti 2D e sebbene i formati DXF e OCA supportino anche le definizioni di oggetti nello spazio 3D (gli oggetti non sono necessariamente piatti), non importa oggetti volumetrici come mesh, superfici 3D, ecc., ma solo linee, cerchi, testi o forme piatte. I formati di file attualmente supportati sono:
- Autodesk .DXF: importa ed esporta file Drawing Exchange Format creati con applicazioni CAD 2D. Vedere anche la pagina Importare i file DXF in FreeCAD.
- Autodesk .DWG: importa ed esporta i file DWG tramite l'importatore DXF, quando viene installata l'utility ODA Converter. Vedere anche la pagina Importare i file DWG in FreeCAD.
- SVG: importa ed esporta i file Scalable Vector Graphics creato con applicazioni di disegno vettoriale.
- Open Cad format .OCA: importa ed esporta file OCA/GCAD, potenzialmente un nuovo formato di file open CAD.
- Airfoil Data Format .DAT: importa file DAT che descrivono profili aerodinamici portanti.
Test unitari
Vedere anche: Ambiente Test.
Per eseguire i test unitari dell'ambiente, eseguire quanto segue dal terminale del sistema operativo.
freecad -t TestDraft
Script
Gli strumenti di Draft possono essere utilizzati nelle macro e dalla console Python utilizzando le API Draft.
L'ambiente include un modulo per creare dei campioni di tutti gli oggetti in un nuovo documento. disponibile dalla versione 0.19
Utilizzare questo per verificare che tutti gli oggetti siano prodotti correttamente.
import drafttests.draft_test_objects as dto
doc = dto.create_test_file()
Ispezionare il codice di questo modulo è utile per capire come utilizzare l'interfaccia di programmazione.
Tutorials
Tutorial
- 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, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Surface, TechDraw, Test Framework
- Hubs: User hub, Power users hub, Developer hub