Simple drawing failing to export to 2D .DXF

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
Post Reply
run_the_race
Posts: 161
Joined: Mon Feb 01, 2021 7:22 pm

Simple drawing failing to export to 2D .DXF

Post by run_the_race »

I have flattened some sheetmetal parts, and other complex drawings, and they exported to 2D .DXF no problem.

However now I have a very simple plate, and its failing to export. I simplified the drawing and attached it.

This is the drawing:
plate.png
plate.png (7.8 KiB) Viewed 498 times
And this is how it gets exported:
plate2.png
plate2.png (5.42 KiB) Viewed 498 times

Code: Select all

OS: Windows 10 Version 2004
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24276 (Git)
Build type: Release
Branch: releases/FreeCAD-0-19
Hash: a88db11e0a908f6e38f92bfc5187b13ebe470438
Python version: 3.8.6+
Qt version: 5.15.1
Coin version: 4.0.1
OCC version: 7.5.0
Locale: English/United Kingdom (en_GB)
Attachments
export_dxf.FCStd
(17.49 KiB) Downloaded 22 times
drmacro
Veteran
Posts: 8979
Joined: Sun Mar 02, 2014 4:35 pm

Re: Simple drawing failing to export to 2D .DXF

Post by drmacro »

If you go to Preferences>Import/Export DXF tab.

Select legacy export and project along view.

THen switch to the side view, select the body, and export.

Looks ok here.
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
run_the_race
Posts: 161
Joined: Mon Feb 01, 2021 7:22 pm

Re: Simple drawing failing to export to 2D .DXF

Post by run_the_race »

drmacro wrote: Sat Jun 19, 2021 2:50 pm If you go to Preferences>Import/Export DXF tab.

Select legacy export and project along view.

THen switch to the side view, select the body, and export.

Looks ok here.
Thank you! I had "project exported objects along current view on", but didnt not try legacy python exporter cause it doesnt sound like a good option, but that did the trick!
freedman
Veteran
Posts: 3465
Joined: Thu Mar 22, 2018 3:02 am
Location: Washington State, USA

Re: Simple drawing failing to export to 2D .DXF

Post by freedman »

For anyone out there looking to do some automated DXF exports. I used this macro to export one or multiple views from TechDraw. It exports to a Dir on your system and numbers the files for multiple views. It's currently set to export to "C:A_dxfs" but can be changed by editing the first real fileSpecDxf. If I remember correctly you need to select the target page then run the macro.

I used this alot on a big project. I would grab a bunch of views and bring them to TechDraw and then generate DXFs for AutoCad. Worked great!

Wandererfan generated the basic structure of the macro. Thanks to him.
Attachments
dxf_out_to_file.FCMacro
(1.98 KiB) Downloaded 20 times
Post Reply