FreeCAD and DXF Import/ru: Difference between revisions

From FreeCAD Documentation
(Created page with "=== АВтоматически ===")
(Updating to match new version of source page)
Line 6: Line 6:
DXF is a proprietary CAD data format for 2D drawings that originated with AutoCAD. More details can be found on the [[DXF|DXF]] wiki page.
DXF is a proprietary CAD data format for 2D drawings that originated with AutoCAD. More details can be found on the [[DXF|DXF]] wiki page.


<span id="Introduction"></span>
== Введение ==
== Введение ==


Line 14: Line 15:
== How to install the legacy DXF importer and exporter ==
== How to install the legacy DXF importer and exporter ==


<span id="Automatically"></span>
=== АВтоматически ===
=== АВтоматически ===


Line 20: Line 22:
For FreeCAD 0.14 or older you have to install manually:
For FreeCAD 0.14 or older you have to install manually:


<span id="Manually"></span>
=== Вручную ===
=== Вручную ===


Line 38: Line 41:
You can try:
You can try:
# Go to {{MenuCommand|Edit → Preferences → Import-Export → DXF}} and untick the option {{MenuCommand|Join geometry}} and try again.
# Go to {{MenuCommand|Edit → Preferences → Import-Export → DXF}} and untick the option {{MenuCommand|Join geometry}} and try again.
# Remember that maybe now you won't have coincident endpoints. You will have to make them coincident yourself.
# Remember that maybe now you won't have coincident endpoints. You can make them coincident with [[Sketcher_ValidateSketch|Sketcher ValidateSketch]]
# You can do this with the [[Sketcher_CloseShape|Sketcher CloseShape]] command {{VersionPlus|0.15}} or you can apply the constraints manually.


You can also try:
You can also try:

Revision as of 12:56, 18 May 2023

Background

DXF is a proprietary CAD data format for 2D drawings that originated with AutoCAD. More details can be found on the DXF wiki page.

Введение

Since FreeCAD version 0.18 there is a new C++ DXF importer, and since version 0.19 also a new C++ DXF exporter. These new components are installed with FreeCAD.

To use the older, legacy, DXF importer and exporter you need to install several files. These files cannot be included with FreeCAD since they use libraries published under a license that is not compatible with FreeCAD.

How to install the legacy DXF importer and exporter

АВтоматически

If the files are not already installed, go to the menu Edit → Preferences → Import-Export → DXF and enable the option Allow FreeCAD to automatically download and update the DXF libraries to make FreeCAD automatically download and install them.

For FreeCAD 0.14 or older you have to install manually:

Вручную

  1. Go to Yorik's Github account and download these files (on the right side you can choose "download as ZIP").
  2. Put the files in your macro folder.
  3. If you are unsure where this folder is, go to Edit → Preferences → General → Macro and check the field named Macro Path.
  • In Ubuntu your macro folder is normally (the folder is hidden, you may need to unhide it):
/home/your_user_name/.FreeCAD 
  • In Windows your macro folder is normally:
C:\Users\your_user_name\AppData\Roaming\FreeCAD

See also: Dxf Importer Install

Tips and Tricks

Sometimes DXF Files don't import although they open in other CAD-Programs without problems.

You can try:

  1. Go to Edit → Preferences → Import-Export → DXF and untick the option Join geometry and try again.
  2. Remember that maybe now you won't have coincident endpoints. You can make them coincident with Sketcher ValidateSketch

You can also try:

  1. Go to Edit → Preferences → Draft → General settings and adjust the value of Tolerance (default: 0,05) and try again.

For an overview of all DXF related preferences see Import Export Preferences.