FreeCAD and DWG Import/es: Difference between revisions

From FreeCAD Documentation
(Created page with "=== Linux/Unix systemas === git clone https://git.savannah.gnu.org/git/libredwg.git cd libredwg mkdir build cd build cmake .. make make install (o usa checkinstall, o s...")
(Created page with "Para evitar problemas de ejecución del programa debe utilizar el paquete LibreDWG compilado para la distribución de openSUSE OS instalada. LibreDWG se instala normalmente c...")
Line 82: Line 82:
=== openSUSE ===
=== openSUSE ===


To prevent from program execution problems you must use LibreDWG package compiled for the installed openSUSE OS distribution.
Para evitar problemas de ejecución del programa debe utilizar el paquete LibreDWG compilado para la distribución de openSUSE OS instalada.
LibreDWG is typically installed with '''YAST''' (abbr. Yet another Setup Tool) the Linux operating system's setup and configuration tool.
LibreDWG se instala normalmente con '''YAST''' (abbr. Yet another Setup Tool) la herramienta de instalación y configuración del sistema operativo Linux.


The more experienced user first gets an overview of possible packages provided.
The more experienced user first gets an overview of possible packages provided.

Revision as of 14:16, 2 July 2021


¿Por qué es difícil soportar archivos DWG en FreeCAD?

El formato DWG es un formato de archivo binario de código cerrado que no es soportado directamente por FreeCAD. Requiere un conversor de archivos externo de terceros para convertirlo primero e importar la conversión a FreeCAD para su uso.

Ten en cuenta que en este momento no es posible importar DWG 3D en FreeCAD. Los datos 3D están incrustados como datos binarios .SAT (ACIS), un formato propietario y no documentado.

¿Qué necesito para poder importar archivos DWG?

Convertidor ODA (antes Convertidor Teigha)

El ODA Conversor es una pequeña utilidad de libre acceso que permite convertir entre varias versiones de archivos DWG y DXF. FreeCAD puede utilizarlo para ofrecer importación y exportación de DWG, convirtiendo los archivos DWG al formato DXF bajo el capó, y luego utilizando su importador DXF estándar para importar el contenido del archivo. Se aplican las restricciones del importador DXF.

Instalación

En todas las plataformas, sólo instalando el paquete apropiado de https://www.opendesign.com/guestfiles/oda_file_converter . Después de la instalación, si la utilidad no es encontrada automáticamente por FreeCAD, puede que sea necesario establecer la ruta del ejecutable del convertidor manualmente. abrir Editar → Preferencias → Importación-Exportación → DWG y llenar "Camino al convertidor de archivos de Teigha" apropiadamente.

Para obtener instrucciones más detalladas, consulte este tutorial.

Utilización

El programa puede utilizarse con la interfaz de línea de comandos o con la interfaz gráfica. Asegúrese de convertir los archivos DWG a un formato ASCII.

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

 ODAFileConverter "/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"

CADExchanger Ambiente de trabajo

Installing the CADExchanger Workbench allows for working with DWG files through integration with the paid commercial file converter product CADExchanger. Just follow the instructions in the GitHub repository. You can discuss this workbench on its forum thread.

At the moment, the CADExchanger way is the only one that allows to work with 3D DWG files, by converting them to other 3D formats.

FreeCAD v0.19 y LibreDWG

A partir de la versión 0.19, FreeCAD ya no necesita el convertidor ODA y puede utilizar libreDWG directamente. Ten en cuenta que, dado que libreDWG es un trabajo en curso, dependiendo de tu archivo, los resultados podrían no ser los mismos.

GNU LibreDWG es una biblioteca libre en C para manejar archivos DWG. Pretende ser un sustituto libre de las bibliotecas del SDK de Open Design Alliance Drawings.

Instalación

.AppImage releases

LibreDWG is included in v 0.19_pre appimages[1]

Windows

LibreDWG can be configured to work on Windows by downloading and unzipping the appropriate pre-compiled windows binary and adding the folder to your Windows versions system path.

Linux/Unix systemas

git clone https://git.savannah.gnu.org/git/libredwg.git
cd libredwg
mkdir build
cd build
cmake ..
make
make install (o usa checkinstall, o simplemente localiza y copia la utilidad dwg2dxf en tu ruta de ejecutables, entonces será autodetectada por FreeCAD)

openSUSE

Para evitar problemas de ejecución del programa debe utilizar el paquete LibreDWG compilado para la distribución de openSUSE OS instalada. LibreDWG se instala normalmente con YAST (abbr. Yet another Setup Tool) la herramienta de instalación y configuración del sistema operativo Linux.

The more experienced user first gets an overview of possible packages provided. Note: openSUSE has several options to choose from when downloading LibreDWG. To view these options, visit Survey of provided LibreDWG packages on openSUSE.

For e. g. Intel or AMD 64-bit desktops, laptops, and servers the (x86_64) release is the one to select. So, libredwg0 and libredwg-tools are of the right choice to install.

It is recommended to grab the binary packages directly. Then select the correct distribution for your installed openSUSE OS.

In any terminal/console (root rights required) the installation will be carried out with:

zypper install libredwg0 libredwg-tools

Afterwards every *.dwg file import should work properly.

¿Cuáles son las alternativas?

DoubleCAD XT

There is also DoubleCAD XT (https://www.turbocad.com/content/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. Note: it does not seem to have been updated for years.

NanoCAD 5.0

There is also nanoCAD 5.0 (https://nanocad.com/products/nanoCAD/download/). 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.

Exportar sus archivos de AutoCAD en formato amigable

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.

¿Qué puedo hacer para ayudar?

Promover el uso de formatos alternativos

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.

Utilizar la biblioteca LibreDWG y presentar informes de errores

In development version as mentioned above you can switch from the proprietary ODA Converter to the free software LibreDWG library for DWG (and DXF) files. Please do this and report any problems you encounter.