FreeCAD und DWG Import

From FreeCAD Documentation
Revision as of 14:34, 4 August 2015 by Plok (talk | contribs)

Wieso kann FreeCAD keine DWG-Dateien öffnen?

Das DWG-Format ist ein nicht freies, binäres Dateiformat, das von FreeCAD nicht unmittelbar unterstützt wird. Benötigt wird ein separater Konverter, der die Dateien vor dem Import in FreeCAD übersetzt.

Was benötigt man zum Import von DWG-Dateien?

Teigha Konverter

Der Teigha Konverter erlaubt das Übersetzen von DWG- zu DXF-Dateien. Diese kann FreeCAD standardmäßig importieren. Es gelten die Einschränkungen des DXF Imports.

Installation

On all platforms, only by installing the appropriate package from http://www.opendesign.com/guestfiles/TeighaFileConverter . After installation, if the utility is not found automatically by FreeCAD, you might need to set the path to the converter executable manually, in the menu Edit -> Preferences -> Draft -> Import/Export options.

Usage

The program may be used with the command line interface or the graphical interface. Be sure to convert the dwg-files to an ASCII-Format.

Command Line Format is:

  1. Quoted Input Folder
  2. Quoted Output Folder
  3. Output_version {"ACAD9","ACAD10","ACAD12", "ACAD13","ACAD14", "ACAD2000","ACAD2004", "ACAD2007","ACAD2010"}
  4. Output File type {"DWG","DXF","DXB"}
  5. Recurse Input Folder {"0","1"}
  6. Audit each file {"0","1"}
  7. [optional] Input file filter (default:"*.DWG;*.DXF")

Example for Linux
TeighaFileConverter "/home/dwg-data" "/home/dxf-data" "ACAD2010" "DXF" "0" "1" "test.dwg" The second number (audit) needs to be 1 otherwise it fails

Example for Windows
"C:\Program Files\ODA\Teigha File Converter 3.08.2\TeighaFileConverter.exe" "Path-To-Input-Directory" "Path-To-Output-Directory" "ACAD2010" "DXF" "0" "1" "Name-Of-A-Test-File.dwg"

What Are The Alternatives?

DraftSight

There is a free commercial program called Draft Sight (http://www.3ds.com/products-services/draftsight/overview/) that can import most DWG files and can save and export in formats that are friendly to FreeCAD. Draftsight runs on

  • Windows 32 bit
  • Windows 64 bit
  • Mac OS X
  • Linux Fedora
  • Linux Ubuntu

A free registration is required for activation of the program.

DoubleCAD XT

There is also DoubleCAD XT (http://www.doublecad.com/DoubleCAD/DoubleCAD-XT-v5) . The program is free for personal and commercial use. It requires a free sign-up to receive an activation code via E-Mail. This Program is windows-only.

Export Your AutoCAD files in Friendly Format

Exporting your AutoCAD files in a more FreeCAD friendly format, like DXF R12 or R14, SVG, and if version supports it, IGES. All are better alternatives to the DWG format when using FreeCAD.

It is important to know that, contrarily to popular belief, there is no difference between the contents of a file saved in DWG or DXF formats, provided it is the same version (ex. DWG 2014 vs. DXF 2014). Both formats are maintained by Autodesk, and they both support exactly the same features. The difference is that DWG is closed (machine-encoded) while DXF is open.

What Can I Do To Help?

Promote the use of alternative formats

Simply put, stop accepting work done in DWG format. In practice, this is often easier said than done. Still, it would not be bad practice for users and supporters of FreeCAD to avoid and reject the DWG format whenever possible.