DXF/pl: Difference between revisions

From FreeCAD Documentation
No edit summary
(Created page with "Więcej informacji znajduje się na stronach Rysunek Roboczy: DXF i FreeCAD i import DXF.")
Line 18: Line 18:
Jeśli zamierzasz często sprawdzać ustawienia, zalecamy przejście do menu {{MenuCommand|Edycja → Preferencje ...→ Import-Eksport → DXF}} i zaznaczenie pola {{CheckBox|TRUE|Pokaż okno dialogowe podczas importowania i eksportowania}}.
Jeśli zamierzasz często sprawdzać ustawienia, zalecamy przejście do menu {{MenuCommand|Edycja → Preferencje ...→ Import-Eksport → DXF}} i zaznaczenie pola {{CheckBox|TRUE|Pokaż okno dialogowe podczas importowania i eksportowania}}.


More information is on the pages [[Draft_DXF|Draft DXF]] and [[FreeCAD_and_DXF_Import|FreeCAD and DXF Import]].
Więcej informacji znajduje się na stronach [[Draft_DXF/pl|Rysunek Roboczy: DXF]] i [[FreeCAD_and_DXF_Import/pl|FreeCAD i import DXF]].


If you are using the imported geometry to build 3D shapes in the Part Design Workbench, try the [[Sketcher_ValidateSketch|Sketcher Validate]] after you have imported the DXF into a sketch.
If you are using the imported geometry to build 3D shapes in the Part Design Workbench, try the [[Sketcher_ValidateSketch|Sketcher Validate]] after you have imported the DXF into a sketch.

Revision as of 16:13, 21 June 2023

Tło historyczne

Drawing Exchange Format (DXF) to zastrzeżony format danych CAD opracowany przez Autodesk w celu umożliwienia wymiany plików między ich flagowym produktem AutoCAD a innym oprogramowaniem. Istnieje wiele dobrych bibliotek oprogramowania do odczytu/zapisu formatu DXF.

Istnieje wiele wersji formatu DXF. Można usłyszeć o niektórych kluczowych wersjach, takich jak R12 (z 1992 r.) lub R14 (z 1997 r., która miała splajny). Późniejsze wersje DXF mają elementy 3D, ale są one rzadko używane lub wdrażane. Sposób wykorzystania DXF do udostępniania danych CAD między programami zależy głównie od ograniczeń i błędów w odpowiednich czytnikach / importerach i programach zapisujących / eksporterach. Rzadko są one w pełni udokumentowane i mogą być źródłem frustracji.

Jeśli edytujesz pliki DXF i chcesz, aby pozostały prawie takie same po ich zapisaniu, zalecamy użycie LibreCAD lub QCad, ponieważ wewnętrzne struktury danych tych programów są kompatybilne z obiektami w pliku DXF.

W programie FreeCAD czytniki DXF muszą przetłumaczyć geometrię (np. kształty splajnu) z pliku DXF na określone wewnętrzne reprezentacje środowiska pracy.

Metody importowania DXF

Jeśli zamierzasz często sprawdzać ustawienia, zalecamy przejście do menu Edycja → Preferencje ...→ Import-Eksport → DXF i zaznaczenie pola Pokaż okno dialogowe podczas importowania i eksportowania.

Więcej informacji znajduje się na stronach Rysunek Roboczy: DXF i FreeCAD i import DXF.

If you are using the imported geometry to build 3D shapes in the Part Design Workbench, try the Sketcher Validate after you have imported the DXF into a sketch.

C++ DXF importer

This implementation of fast, but skips features it doesn't recognize, such as DXF splines. It also can only import geometry into the Draft Workbench as individual entries in the Model tree. These can have the colors read from the file if you tick to enable this option. For further information, see this forum post.

Python DXF importer

This importer has to be downloaded and installed before it can be used. See Dxf Importer Install, or use the "[ ] Allow FreeCAD to automatically download and update the DXF libraries" option.

This importer has more features (such as implementing splines), and has the option of loading the DXF shapes into the Sketcher Workbench. However, be warned that all the elements of the sketch will appear individually a second time in the model tree, which can be confusing. You can delete all these individual objects and retain the single sketch (which appears as the second entry in the list of new elements).

Unfortunately, the Sketcher Workbench does not implement colors, so all the geometry will appear on the same level, which is a problem if the file contains many construction lines. One work-around is to open your drawing in LibreCAD, and delete all the geometry you don't want to appear before saving a file that contains exactly the geometry that you want to load.

Macros

Keep an eye out on the FreeCAD forum or in the Macros recipes for alternative implementations of DXF importing and cleaning up as they develop.

Saving DXF

In addition to the options under the Edit → Preferences, the TechDraw Workbench can also export drawing pages to DXF using the TechDraw ExportPageDXF function.