Skip to content

jaisekjames/Draft-dxf-importer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Note: The files in this repository are not needed anymore when using the built-in DXF importer (default since FreeCAD 0.16). They are still needed if you wish to use the legacy python importer (settable in Edit-> Preferences -> Import/Export -> DXF) or if you wish to export directly from the 3D model (exporting a Drawing page to DXF also doesn't require these files)

This repository contains files needed to add DXF support (import-export) to FreeCAD. They cannot be included directly in the FreeCAD source code anymore, because they are licensed under the GPL, and for stupid reasons, the OpenCasCade kernel used in FreeCAD prevents using GPL code in FreeCAD.

As a result, to avoid further problems, we decided to make FreeCAD LGPL-only, and remove all non-LGPL bits from its source code.

The files included here don't need to be downoaded manually. On first use of the dxf importer or exporter, these files will be downloaded and placed in the appropriate directory, and normally the user would never need to worry about this anymore.

If for some reason the automatic download failed, you can always download these files manually and place them into your FreeCAD user folder ($HOME/.FreeCAD on linux, $HOME/Library/Preferences/FreeCAD on mac, C:\Users\yourUser\Application Data\FreeCAD on windows before windows7, C:\Users\yoruUser\AppData\Roaming\FreeCAD on windows 7 and later). After that dxf import/export should work normally.

DOWNLOAD

  • For FreeCAD 0.14, you need the dxf lib 1.36. Download it here.
  • For FreeCAD 0.15, you need the dxf lib 1.38. Download it here.
  • For FreeCAD 0.16 you need the dxf lib 1.39. Download it here

The "Download ZIP" button on the right of this page always gives you the version needed by the current stable release of FreeCAD (currently 1.39 for version 0.16)

WARNING

Don't try to save the python scripts here with the "save as..." function of your browser, as it will save html pages, not the python scripts. Use the links above, or the "download ZIP" button on the right side of this page.

VERSIONS

This repository contains several versions of the DXF importer. The default version, that you download when you press the "download ZIP" button above, is always the version needed by the current stable version of FreeCAD.

If you use another version of FreeCAD, for example a development version or an older version, you might also need another verison of this DXF library. You can find out which version of the DXF library is needed by your version of FreeCAD, by entering the following code in the FreeCAD python console:

import importDXF
print importDXF.CURRENTDXFLIB

Then, by using the "branch" button at he top of this page, you can change the version that you will be downloading. Or, more simply, you can use the links provided above.

About

Libraries to enable dxf support in FreeCAD

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%