Rysunek Techniczny: Wyeksportuj stronę do formatu DXF

From FreeCAD Documentation
Revision as of 07:04, 25 July 2023 by Kaktus (talk | contribs) (Created page with "==Ograniczenia==")

Rysunek Techniczny: Wyeksportuj stronę do formatu DXF

Lokalizacja w menu
Rysunek Techniczny → Strona → Wyeksportuj stronę do formatu DXF
Środowisko pracy
Rysunek Techniczny
Domyślny skrót
brak
Wprowadzono w wersji
0.18
Zobacz także
Wyeksportuj stronę do formatu SVG, DXF

Opis

Narzędzie Wyeksportuj stronę do formatu DXF zapisuje stronę rysunku jako plik DXF.

Użycie

  1. Jeśli w dokumencie znajduje się wiele stron rysunku: opcjonalnie aktywuj żądaną stronę, wybierając ją w oknie Widoku drzewa.
  2. Istnieje kilka sposobów wywołania narzędzia:
    • Naciśnij przycisk Wyeksportuj stronę do formatu DXF.
    • Wybierz opcję z menu Rysunek Techniczny → Strona → Wyeksportuj stronę do formatu DXF.
    • Jeśli strona jest wyświetlana w głównym obszarze widoku: kliknij prawym przyciskiem myszy okno strony i wybierz opcję Eksportuj do formatu DXF z menu kontekstowego.
  3. Jeśli w dokumencie znajduje się wiele stron rysunku, a strona nie została jeszcze aktywowana, otworzy się okno dialogowe Wybór strony: dostępne w wersji 0.20.
    1. Wybierz żądaną stronę.
    2. Naciśnij przycisk OK.
  4. Zostanie otwarte okno dialogowe Eksportuj stronę do formatu DXF.
  5. Wybierz lokalizację i nazwę pliku.

Ograniczenia

  • Radial and Diameter dimensions will only export properly if they are "inside" the arc.
  • Scaling is not supported. The DXF will be drawn in the actual size of the TechDraw page.
  • Units are not supported. The DXF will be drawn in millimeters (mm). Dimension text will be shown exactly as displayed in TechDraw.
  • TechDraw can't export a Insert Draft Workbench Object or an Insert Arch Workbench Object to DXF. These views are SVG elements generated internally by the Draft Workbench, so there is no geometrical shape to export. To export a view as DXF, it must have been created with Insert View or Insert Projection Group. For example, select an Arch SectionPlane, then use Draft Shape2DView to create a flat projection shape, and then use Insert View on this object. Alternatively, select the objects from the tree view or the 3D viewport, and export to DXF using File → Export.
  • The title block of a page is an SVG template as well, so it will not be exported to DXF either.
  • In general, TechDraw can only export to DXF those elements that are supported by the Import::ImpExpDxfWrite class of the Import Module.

Notes

  • This function exports the R12 (AC1009) and R14 (AC1014) versions of DXF.
    • R12 is an older, simpler version of the standard, but should be readable by most other software.
    • R14 is the default version. It includes support for splines and ellipses among other things.
  • These parameters affect the output:
    • Tools → Edit parameters → BaseApp/Preferences/Mod/Import → DxfVersionOut. This is an integer value. Valid entries are 12 or 14. The default is 14.
    • Tools → Edit parameters → BaseApp/Preferences/Mod/Import → DiscretizeEllipses. This is a boolean value. If true, splines and ellipses are converted to polylines; if false, splines and ellipses are written as splines and ellipses objects. The default is false. If the DxfVersionOut parameter is 12, splines and ellipses are always converted to polylines.
    • Tools → Edit parameters → BaseApp/Preferences/Mod/Import → maxsegmentlength. This is a float value. If splines and ellipses are converted to polylines this parameter determines the segment length.

Scripting

See also: Autogenerated API documentation and FreeCAD Scripting Basics.

The SaveDXF tool can be used in macros and from the Python console by using the following functions:

TechDraw.writeDXFPage(page,filename)