Draftː DXF
Descrizione
Draft DXF è un modulo software utilizzato dai comandi Apri, Importa and Esporta per gestire il formato DXF.
Disegno fatto con Qcad esportato in DXF, e successivamente aperto in FreeCAD
Importazione
Sono supportate le versioni DXF R12 - 2007.
3D solids inside a DXF file are stored under a binary ACIS/SAT blob, which at the moment cannot be read by FreeCAD.
C++ importer
Possono essere importati i seguenti tipi di oggetti DXF:
- linee
- polilinee e polilinee alleggerite
- circonferenze
- archi
- layers (i layers contenenti gli oggetti vengono convertiti in gruppi FreeCAD)
- testi e testi multipli (mtexts)
- dimensioni
- blocchi (solo la geometria; i testi, le dimensioni e gli attributi all'interno di blocchi sono ignorati)
- punti
- linee guida
- ... e altro
Legacy importer
This importer can import the following DXF objects:
- lines
- polylines (and lwpolylines)
- arcs
- circles
- ellipses
- splines
- 3D faces
- texts and mtexts
- leaders
- layers
Esportazione
I file vengono esportati nel formato DXF R12 che può essere gestito da molte applicazioni.
C++ exporter
Some of the features and limitations of this exporter are:
- All FreeCAD 2D geometry is exported, except Draft CubicBezCurves, Draft BezCurves and Draft Points.
- Straight edges from faces of 3D objects are exported, but curved edges only if they are on a plane parallel to the XY plane of the global coordinate system. Note that a DXF created from 3D objects will contain duplicate lines.
- Texts and dimensions are not exported.
- Colors are ignored.
- Layers are mapped from object names.
Legacy exporter
Possono essere esportati i seguenti oggetti FreeCAD:
- linee e spezzate (polilinee)
- archi e circonferenze
- testi
- i colori sono mappati dai colori RGB degli oggetti secondo l'indice dei colori di autocad (ACI). Il nero è sempre "da layer"
- i layers sono mappati dai nomi dei gruppi. Quando i gruppi sono nidificati, il gruppo più interno attribuisce il nome al livello (layer)
- le dimensioni, che vengono esportate con dimstyle "Standard"
- ... e altro
Installazione
Per motivi di licenza, le librerie di importazione e di esportazione DXF richieste non fanno parte del codice sorgente di FreeCAD.
Per ulteriori informazioni, consultare: Importare i file DXF in FreeCAD.
Preferenze
Per ulteriori informazioni, consultare: Preferenze di Importa/Esporta.
Scripting
Script
Vedere anche: API Draft e Nozioni di base sugli script di FreeCAD.
Si possono esportare elementi in DXF usando la seguente funzione:
importDXF.export(objectslist, filename, nospline=False, lwPoly=False)
- For the Windows OS: use a / (forward slash) as the path separator in
filename
.
Esempio:
import FreeCAD as App
import Draft
import importDXF
doc = App.newDocument()
polygon1 = Draft.make_polygon(3, radius=500)
polygon2 = Draft.make_polygon(5, radius=1500)
doc.recompute()
objects = [polygon1, polygon2]
importDXF.export(objects, "/home/user/Pictures/myfile.dxf")
- 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