FreeCAD can import and export many file formats. For some formats dedicated preferences exist. These can be found in the Preferences editor, in the menu Edit → Preferences → Import-Export.
Not all import and export preferences tabs are available by default. For some a workbench has to be loaded first.
The DXF and SVG preferences listed here are not used by the Export Page as SVG and Export Page as DXF commands of the TechDraw Workbench, or by the TechDraw export option: File → Export → Technical Drawing (*.svg *.dxf *.pdf).
The import and export preferences for OpenSCAD files are listed in a different part of the Preferences editor. See the OpenSCAD Preferences.
See the following pages for additional information:
- Import Export: A table listing all supported file formats.
- FreeCAD Howto Import Export: A list of tutorials that can help users convert data from one format to another.
The Collada DAE (Digital Asset Exchange) format is a standard file format for exchange of Mesh data. FreeCAD can import meshes from .dae files, and export Shape-based objects to the .dae format.
Note for Linux users: To handle this file format FreeCAD requires the pyCollada module.
For the DAE format you can specify the following:
+++
| Name | Description |
+=====================================+=======================================================================================================================================================================================================================================================================================================================================================================================================+
| | All dimensions in the file will be scaled with the specified factor. |
| Scaling factor | |
| | |
+++
| | Sets the meshing program that should be used. If using Netgen, make sure that it is available. This can be checked by using the Mesh Workbench and creating a mesh using Netgen. If it is not available another version of FreeCAD, compiled with Netgen, must be installed. |
| Mesher | |
| | |
+++
| | The tessellation value to use with the Builtin and the Mefisto meshing program. |
| Tessellation | |
| | |
+++
| | The grading value to use for meshing using Netgen. This value describes how fast the mesh size decreases. The gradient of the local mesh size h(x)
is bound by abs(Δh(x)) ≤ 1/value
. |
| Grading | |
| | |
+++
| | The maximum number of segments per edge. |
| Segments per edge | |
| | |
+++
| | The number of segments per radius. |
| Segments per radius | |
| | |
+++
| | Allow a second order mesh. |
| Second order | |
| | |
+++
| | Allow optimization. |
| Optimize | |
| | |
+++
| | Allow quadrilateral faces. |
| Allow quads | |
| | |
+++
DWG (from drawing) is a proprietary, closed source, binary file format for storing 2D and 3D design data and metadata. FreeCAD requires external converters to process DWG files.
Note: All settings for the DXF file format also apply to DWG.
For the DWG format you can specify the following:
+++ | Name | Description | +========================================+================================================================================================================================================================================================================================================================================================================+ | | Select the DWG converter to use: | | Conversion method | | | | - Automatic: FreeCAD will try to find a converter automatically following the order of the rest of this list. (v0.21) : For LibreDWG the OS search path is searched ({{Incode|os.getenv("PATH")}}), for the other converters default installation paths are assumed. | | | - LibreDWG: LibreDWG is an open-source DWG reading and writing library. It lacks support for several DWG entities, and may not always give faithful results. | | | - ODA Converter: The ODA File Converter is a free utility provided by the Open Design Alliance. It gives very good and reliable results. | | | - QCAD pro: QCAD pro is the paid version of the open-source QCAD DXF-based 2D CAD platform. Its DWG converter uses the Teigha libraries from the OpenDesign Alliance and therefore gives the same good results as the ODA File Converter. | | | | | | | | | (v0.20) | | | | +++ | | If FreeCAD is unable to find a converter you need to specify a path here: | | Path to file converter | | | | - LibreDWG: dwg2dxf or dxf2dwg on Linux and macOS, dwg2dxf.exe or dxf2dwg.exe on Windows. Either filename can be specified for both the conversion from DWG and to DWG. | | | - ODA Converter: ODAFileConverter on Linux and macOS, ODAFileConverter.exe on Windows. | | | - QCAD pro: dwg2dwg (a bash script) on Linux and macOS, dwg2dwg.bat on Windows. | | | | | | | | | (v0.20) | | | | | | | | | (v0.21) | | | | | | : The path must contain the correct filename. | +++
AutoCAD DXF (Drawing eXchange Format) is a proprietary format to exchange CAD data between AutoCAD and other programs.
For the DXF format you can specify the following:
+++ | Name | Description | +======================================================================================+============================================================================================================================================================================================================================================+ | | If checked, this preferences dialog will be shown when importing or exporting DXF files. | | Show this dialog when importing and exporting | | | | | +++ | | If checked, the Python importer is used, otherwise the newer C++ one. The C++ importer is faster, but has not as many features yet. | | Use legacy python importer | | | | The Python importer uses the Edit → Preferences... → Draft → General settings → Internal precision level preference. For an accurate import result set this value to 8 or higher. | +++ | | If checked, the Python exporter is used, otherwise the newer C++ one. The C++ exporter is faster, but has not as many features yet. | | Use legacy python exporter | | | | | +++ | | By checking this, you will allow FreeCAD to download the Python converter for DXF import and export. This converter cannot be bundled with FreeCAD because it has a different software license. | | Allow FreeCAD to automatically download and update the DXF libraries | | | | | +++ | | Select what will be imported. | | Import | | | | If texts and dimensions is unchecked, texts and mtexts won't be imported. | | | | | | If points is unchecked, points won't be imported. | | | | | | If layouts is checked, paper space objects will be imported too. | | | | | | Check *blocks if you want anonymous blocks (which have names beginning with a *) to be imported too. | +++ | | Select what will be created. | | Create | | | | If simple Part shapes is selected, only standard Part objects will be created. This is the fastest. | | | | | | If Draft objects is selected, parametric Draft objects will be created whenever possible. | | | | | | If Sketches is selected, sketches will be created whenever possible. | +++ | | Scale factor to apply to DXF files on import. The factor is the conversion between the units of your DXF file and millimeters. Example: for files in millimeters: 1, in centimeters: 10, in meters: 1000, in inches: 25.4, in feet: 304.8. | | Scale factor to apply to imported files | | | | | +++ | | If checked, colors will be retrieved from the DXF objects whenever possible. Otherwise default colors will be applied. | | Get original colors from the DXF file | | | | | +++ | | If checked, FreeCAD will try to join coincident objects into wires. Note that this can take a while! | | Join geometry | | | | | +++ | | If checked, objects from the same layers will be joined into Draft Blocks, which display faster, but are less easily editable. | | Group layers into blocks | | | | | +++ | | If checked, imported texts will get the standard Draft Text size, instead of the size they have in the DXF document. | | Use standard font size for texts | | | | | +++ | | If checked, DXF layers will be imported as Draft Layers. | | Use Layers | | | | | +++ | | If checked, hatches will be converted to simple wires. | | Import hatch boundaries as wires | | | | | +++ | | If checked, if polylines have a width defined, they will be rendered as closed wires with the correct width. | | Render polylines with width | | | | | +++ | | The export of ellipses and splines is poorly supported. Use this option to export them as polylines instead. | | Treat ellipses and splines as polylines | | | | The setting Max Spline Segment is then the maximum length of each of the polyline segments. If it is set to 0 the whole spline is treated as a straight segment. | +++ | | If checked, all objects containing faces will be exported as 3D polyfaces. | | Export 3D objects as polyface meshes | | | | | +++ | | If this is checked, Drawing Views will be exported as blocks. This might fail for post DXF R12 templates. | | Export Drawing Views as blocks | | | | | +++ | | If checked, the exported objects will be projected to reflect the current view direction. This option only works if the legacy Python exporter is used. | | Project exported objects along current view direction | | | | | +++
The Initial Graphics Exchange Specification (IGES) file format is a file format that allows the digital exchange of information among CAD systems. After publication of the STEP file format, IGES development was stopped in 1996, but it is still supported by many CAD programs. IGES files have the .iges or .igs extension.
The tab IGES is only shown in the preferences if the Part Workbench, PartDesign Workbench, or OpenSCAD Workbench has been loaded in the current FreeCAD session.
For the IGES format you can specify the following:
+++ | Name | Description | +============================================+=============================================================================================================================================================================================================================================================================================================================+ | | Select what unit will be used when exporting IGES files. | | Units for export of IGES | | | | | +++ | | Select how solids and shells should be output. | | Write solids and shells as | | | | If Groups of Trimmed Surfaces (type 144) is selected, they will be exported as trimmed surfaces. | | | | | | If Solids (type 186) and Shells (type 514) / B-REP mode is selected, solids will be exported as manifold solid B-Rep objects, shells as shells. | +++ | | If checked, blank entities will not be imported. | | Skip blank entities | | | | | +++ | | If not empty, the entered text will be used in the IGES file header for the company. | | Company | | | | | +++ | | If not empty, the entered text will be used in the IGES file header for the author. | | Author | | | | | +++ | | If not empty, the entered text will be used in the IGES file header for the product. | | Product | | | | | +++
Industry Foundation Classes (IFC) is a wide spread format to exchange data between BIM applications. It is used in architecture and engineering.
Note for Linux users: To handle this file format FreeCAD requires the IfcOpenShell module.
For import of the IFC format you can specify the following:
+++ | Name | Description | +=================================================================================+========================================================================================================================================================================================================================================================+ | | If checked, this preferences dialog will be shown when importing IFC files. | | Show this dialog when importing | | | | | +++ | | Shows verbose debug messages during import and export of IFC files in the Report view. | | Show debug messages | | | | | +++ | | IFC objects can share a same geometry definition between several objects, only their placement is different. When this option is enabled, clones are used to achieve the same result in FreeCAD. One object is the base object, the others are clones. | | Create clones when objects have shared geometry | | | | | +++ | | Specify the number of CPU cores to use for IFC import. The maximum number should be smaller than the number of actually available cores. Use 0 to disable this feature. | | Number of cores to use (experimental) | | | | | +++ | | What will be created in FreeCAD for arch IFC objects. | | Import arch IFC objects as | | | | | +++ | | What will be created in FreeCAD for struct IFC objects. | | Import struct IFC objects as | | | | | +++ | | Only subtypes of the specified element will be imported. Keep the predefined element IfcProduct to import all building elements. | | Root element | | | | | +++ | | If checked, openings will be imported as subtractions, otherwise wall shapes will already have their openings subtracted. | | Separate openings | | | | | +++ | | If checked, the importer will try to detect extrusions. Note that this might slow things down. | | Detect extrusions | | | | | +++ | | Split walls made of multiple layers. | | Split multilayer walls | | | | | +++ | | If checked, object names will be prefixed with the IFC ID number. | | Prefix names with ID number | | | | | +++ | | If several materials with the same name are found in the IFC file, they will be treated as one. | | Merge materials with same name and same color | | | | | +++ | | If checked, each object will have their IFC properties stored in a spreadsheet object. | | Import Ifc Properties in spreadsheet | | | | | +++ | | If unchecked invalid shapes are not imported. | | Allow invalid shapes | | | | | +++ | | A comma-separated list of IFC entities to be excluded from imports. | | Exclude list | | | | | +++ | | Fit view during import on the imported objects. This will slow down the import, but one can watch the import. | | Fit view while importing | | | | | +++ | | Creates a full parametric model on import using stored FreeCAD object properties. | | Import full FreeCAD parametric definitions if available | | | | To get the FreeCAD properties, the model must have been exported using the option Export full FreeCAD parametric model. | +++ | | If checked, groups will be used to replace the mentioned objects. | | Replace 'Project', 'Site', 'Building' and 'Storey' with 'Group' | | | | | +++
For export of the IFC format you can specify the following:
+++ | Name | Description | +========================================================================================+===================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================+ | | If checked, this preferences dialog will be shown when exporting IFC files. | | Show this dialog when exporting | | | | | +++ | | Select how the model should be exported: as Standard model, Structural Analysis, or Standard + structural. | | Export type | | | | | +++ | | Some IFC viewers don't like objects exported as extrusions. Use this to force all objects to be exported as BREP geometry. But avoid exporting as Brep if possible as this makes objects non-parametric. | | Force export as Brep | | | | | +++ | | Use triangulation options set in the DAE options page. | | Use DAE triangulation options | | | | | +++ | | Curved shapes that cannot be represented as curves in IFC are decomposed into flat facets. If this is checked, some additional calculation is done to join coplanar facets. | | Join coplanar facets when triangulating | | | | | +++ | | When exporting objects without a unique ID (UID), the generated UID will be stored inside the FreeCAD object for reuse the next time the object is exported. This leads to smaller differences between file versions. | | Store IFC unique ID in FreeCAD objects | | | | | +++ | | IFCOpenShell is a library for IFC files. Its serializer functionality can produce valid IFC geometry from OCC shapes. | | Use IfcOpenShell serializer if available | | | | Note that this is still an experimental feature. | +++ | | If checked, 2D objects will be exported as IfcAnnotation. | | Export 2D objects as IfcAnnotations | | | | | +++ | | If checked, all FreeCAD object properties will be stored inside the exported objects, allowing to recreate a full parametric model on reimport using the option Import full FreeCAD parametric definitions if available. | | Export full FreeCAD parametric model | | | | | +++ | | If checked, similar entities will be used only once in the file if possible. This can reduce the file size a lot, but will make it less easily readable. | | Reuse similar entities | | | | | +++ | | Whenever possible, IFC objects that are extruded rectangles will be exported as IfcRectangleProfileDef. For applications that have problems importing these entities, select this option to ensure that all profiles are exported as IfcArbitraryClosedProfileDef instead. | | Disable IfcRectangleProfileDef | | | | | +++ | | Some IFC types such as IfcWall or IfcBeam have special standard versions like IfcWallStandardCase or IfcBeamStandardCase. If this option is selected, FreeCAD will automatically export such objects as standard cases when the necessary conditions are met. | | Auto-detect and export as standard cases when applicable | | | | | +++ | | When exporting an IFC file, if no site is found in the FreeCAD document, a default one is added. A site is not mandatory according to the IFC standard, but it is common practice to have at least one in the file. | | Add default site if one is not found in the document | | | | | +++ | | When exporting an IFC file, if no building is found in the FreeCAD document, a default one is added. | | Add default building if one is not found in the document (no standard) | | | | Warning: The IFC standard asks for at least one building in each file. By turning this option off, you will produce a non-standard IFC file. | | | | | | However, at FreeCAD we believe having a building should not be mandatory, and this option is there to have a chance to demonstrate our point of view. | +++ | | When exporting an IFC file, if no building storey is found in the FreeCAD document, a default one is added. A building storey is not mandatory according to the IFC standard, but it is common practice to have at least one in the file. | | Add default building storey if one is not found in the document | | | | | +++ | | Select which units will be used when exporting IFC files. | | IFC file units | | | | | +++
INP is the input file format for the FEM software Abaqus. It is used for the CalculiX solver in the FEM Workbench.
The tab INP is only shown in the preferences if the FEM Workbench has been loaded in the current FreeCAD session.
For the INP format you can specify the following:
+++ | Name | Description | +===============================================+======================================================================================================================================================================================================+ | | Select which mesh elements should be exported. | | Which mesh elements to export | | | | If All is selected, all elements will be exported. | | | | | | If Highest is selected, only the highest elements will be exported. This means volumes for a volume mesh and faces for a shell mesh. | | | | | | If FEM is selected, only FEM elements will be exported. This means only edges not belonging to faces and faces not belonging to volumes. | +++ | | If checked, mesh groups are exported too. Every constraint and, if there are different materials, material consists of two mesh groups, faces and nodes where the constraint or material is applied. | | Export group data | | | | | +++
(v0.21)
TBD.
Meshes are a special type of 3D object, composed of triangular faces connected by their vertices and edges. They are widely used for additive manufacturing. FreeCAD provides the Mesh Workbench to create and handle meshes. FreeCAD supports several mesh file formats.
The tab Mesh Formats is only shown in the preferences if the Mesh Workbench has been loaded in the current FreeCAD session.
For the Mesh formats you can specify the following:
+++ | Name | Description | +====================================================+=============================================================================+ | | Specification of the maximal deviation between the mesh and the object. | | Maximum mesh deviation | | | | | +++ | | If checked, ZIP compression is used when writing a mesh file in AMF format. | | Export AMF files using compression | | | | | +++ | | Width of Asymptote page. | | Width | | | | | +++ | | Height of Asymptote page. | | Height | | | | | +++
The OCA file format is a community project to create a free, simple and open CAD file format. OCA is largely based on the GCAD file format generated by gCAD3D. Both formats can be imported in FreeCAD and the OCA files exported by FreeCAD can be opened in gCAD3D.
For the OCA format you can specify the following:
+++ | Name | Description | +==================================+========================================================+ | | If checked, the areas (3D faces) will be imported too. | | Import OCA areas | | | | | +++
The Standard for The Exchange of Product model data (STEP) file format is an ISO standard for the computer-interpretable representation and exchange of product manufacturing information. STEP is commonly used to exchange 3D data between CAD software. STEP files have the .step or .stp extension. For compressed files the .stpz extension is used.
The tab STEP is only shown in the preferences if the Part Workbench, PartDesign Workbench, or OpenSCAD Workbench has been loaded in the current FreeCAD session.
For the STEP format you can specify the following:
+++ | Name | Description | +=================================================================+===================================================================================================================================================================================================================================================+ | | Select which units will be used when exporting STEP files. | | Units for export of STEP | | | | | +++ | | If checked, parametric curves (curves in parametric space of surfaces) will be written into the STEP file. Unchecking the option can be helpful to minimize the size of the resulting STEP file. | | Write out curves in parametric space of surface | | | | | +++ | | Uncheck this to skip invisible object when exporting, which is useful for CAD applications that do not support invisibility STEP styling. | | Export invisible objects | | | | | +++ | | Check this option to keep the placement information when exporting a single object. Please note that when re-importing the STEP file, the placement will be encoded into the shape geometry, instead of keeping it inside the Placement property. | | Export single object placement | | | | | +++ | | Use the legacy exporter. | | Use legacy exporter | | | | | +++ | | Select the STEP application protocol (AP) to be used for the export. | | Scheme | | | | AP 203 is the protocol for configuration controlled 3D designs of mechanical parts and assemblies. | | | | | | AP 214 is the protocol for core data for automotive mechanical design processes. | +++ | | If checked, a compound merge will be done during file reading. This is slower but results in higher details. | | Enable STEP Compound merge | | | | | +++ | | Select this to use App::LinkGroup group containers instead of App::Part group containers. | | Use LinkGroup | | | | | +++ | | Select this to import invisible objects. | | Import invisible objects | | | | | +++ | | Reduce the number of objects using Link arrays. | | Reduce number of objects | | | | | +++ | | Expand compound shapes with multiple solids. | | Expand compound shape | | | | | +++ | | Show a progress bar when importing. | | Show progress bar when importing | | | | | +++ | | Do not use instance names. Useful for some legacy STEP files with non-meaningful auto-generated instance names. | | Ignore instance names | | | | | +++ | | Select the required document structure. | | Mode | | | | Single document | | | | | | Assembly per document | | | | | | Assembly per document in sub-directory | | | | | | Object per document | | | | | | Object per document in sub-directory | +++ | | If not empty, the entered text will be used in the STEP file header for the company. | | Company | | | | | +++ | | If not empty, the entered text will be used in the STEP file header for the author. | | Author | | | | | +++ | | If not empty, the entered text will be used in the STEP file header for the product. | | Product | | | | | +++
Scalable Vector Graphics (SVG) is a vector image format for two-dimensional graphics. A vector image can be scaled to any size without losing its shape or details. An SVG image can be converted to bitmap formats like PNG or JPEG for printing.
For the SVG format you can specify the following:
+++ | Name | Description | +=========================================================+==============================================================================================================================================================================================================================+ | | Select how SVG object colors and line widths will be imported. | | Import style | | | | If None (fastest) is selected no color or line width settings will be imported. | | | | | | If Use default color and linewidth is selected FreeCAD will use its default color and line width. | | | | | | If Original color and linewidth is selected FreeCAD will use the color and linewidth from the SVG objects. | +++ | | If checked, no unit conversion will occur. One unit in the SVG file will translate as one millimeter. | | Disable units scaling | | | | | +++ | | Select how Sketches are exported to SVG. | | Export style | | | | If Translated (for print & display) is selected, SVG objects are encapsulated in a group that is scaled and moved to the correct place in the SVG document to fit into a printable area. | | | | | | If Raw (for CAM) is selected, SVG objects are placed as they are - at the same coordinates as in the FreeCAD model (1:1 export). | +++ | | If checked, all white lines will appear in black in the SVG for better readability against white backgrounds. | | Translate white line color to black | | | | | +++ | | Versions of Open CASCADE older than version 6.8 don't support arc projection. In this case arcs will be discretized into small line segments. This value is the maximum segment length. | | Max segment length for discretized arcs | | | | | +++
The Visualization Toolkit (VTK) is an open-source, freely available software system for 3D computer graphics, image processing and visualization. VTK files are used by the FEM Workbench for the post processing of simulation results.
The tab VTK is only shown in the preferences if the FEM Workbench has been loaded in the current FreeCAD session.
For the VTK format you can specify the following:
+++ | Name | Description | +=============================================+=====================================================================================================================================================================================================================================================+ | | Select what objects should be imported. | | Which object to import into | | | | If VTK result object is selected, a FreeCAD FEM VTK result object will be imported (equals to the object which was exported). | | | | | | If FEM mesh object is selected, the results in the VTK file will be omitted, only the mesh data will be imported and a FreeCAD FEM mesh object will be created. | | | | | | If FreeCAD result object is selected, the imported data will be converted into a FreeCAD FEM Result object. Note: this setting needs the exact result component names and thus it only works properly with VTK files exported from FreeCAD. | +++
⏵ documentation index > [Common Questions](Category_Common Questions.md) > Preferences > File_Formats > Import > Import Export Preferences