TechDraw SaveDXF

From FreeCAD Documentation
Jump to: navigation, search
Other languages:
Deutsch • ‎English • ‎français • ‎hrvatski • ‎italiano • ‎română • ‎русский
Arrow-left.svg Previous: Techdraw-saveSVG.svg Save SVG
Next: Hatching Techdraw-hatch.png Arrow-right.svg

TechDraw SaveDXF.png TechDraw SaveDXF

Menu location
TechDraw → Export page Dxf
Workbenches
TechDraw
Default shortcut
None
Introduced in version
0.18
See also
TechDraw SaveSVG, Draft DXF


Description

The Export page Dxf tool saves a drawing page as a DXF file

How to use

  1. Select a Page in the tree (if the document contains multiple pages).
  2. Press the TechDraw SaveDXF.png Save page as Dxf button
  3. A File Save dialog will open. Select a location and file name.

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 among other things.
  • There are 2 parameters that affect DXF output:
    • Preferences → Mod → Import → DxfVersionOut, valid entries are 12 or 14. Default is 14.
    • Preferences → Mod → Import → DiscretizeEllipses. If True splines/ellipses are polylines; if False spline/ellipses are written as splines/ellipses. Default is false.
  • If the FreeCAD document contains multiple pages, you will have to select the desired page in the tree before pressing the export button.
  • 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 mm. Dimension text will be shown exactly as displayed in TechDraw.

Scripting

See also: TechDrawGui API 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)


Arrow-left.svg Previous: Techdraw-saveSVG.svg Save SVG
Next: Hatching Techdraw-hatch.png Arrow-right.svg