[solved] Problem DXF Export

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!
claus007
Posts: 28
Joined: Fri Dec 06, 2013 11:18 pm

[solved] Problem DXF Export

Post by claus007 »

Hello,

I think I am going crazy .... I just want to export a simple sketch ... I looked for help on google but found nothing ...
(except that I can't export 3d objects to dxf - ohhh REALLY ? (this was sarcasm - sorry) )

I did it like described in the manual - click on the project tree on the sketch - the file - export - dxf - and tried to open it in LibreCAD...

and all I see in libre cad is one line - what do I make wrong ?

attached is the freecad file - the dxf result and a screenshot from libre cad ...

Please help me ...

BTW FreeCAD version is:

OS: Ubuntu 14.04.1 LTS
Word size: 64-bit
Version: 0.14.3702 (Git)
Branch: releases/FreeCAD-0-14
Hash: b3368125c63289ec8ce9faec2b2ae4c78d436406
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
SoQt version: 1.6.0a
OCC version: 6.7.0
Attachments
Staender.dxf
the result
(1.31 KiB) Downloaded 43 times
TabletSocket01.fcstd
the file
(39.81 KiB) Downloaded 29 times
What it lloks like
What it lloks like
Result_DXF.jpg (91.18 KiB) Viewed 1665 times
Last edited by claus007 on Wed Sep 03, 2014 8:26 pm, edited 1 time in total.
User avatar
shoogen
Veteran
Posts: 2823
Joined: Thu Dec 01, 2011 5:24 pm

Re: Problem DXF Export

Post by shoogen »

claus007 wrote:and all I see in libre cad is one line - what do I make wrong ?
My first guess is a wrong projection direction/plane. As a temporary workaround you could duplicate the sketch. and rotate it to lie in the x-y plane.

EDIT: I was just my first guess, before i realized that you attached a FreeCAD file.
The dxf file looks like Sketch001 viewed from the top. I don't know much, if there is any special handling of sketches. By default, objects are projected to the xy-plane. There is an option to project according to the camera orientation in the 3d view. But this option is disabled by default and AFIAK there are currently problems, when projecting non-solid geometry.
Attachments
sketch002.dxf
(1.41 KiB) Downloaded 35 times
sketch.dxf
(1.32 KiB) Downloaded 42 times
sketch001.dxf
(1.03 KiB) Downloaded 45 times
claus007
Posts: 28
Joined: Fri Dec 06, 2013 11:18 pm

Re: Problem DXF Export

Post by claus007 »

shoogen wrote:
claus007 wrote:and all I see in libre cad is one line - what do I make wrong ?
My first guess is a wrong projection direction/plane.
Please be patient, what do you exactly mean ? The main view ? or what ?
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Problem DXF Export

Post by NormandC »

Well first things first, how about you tell us which sketch exactly you were trying to export.

Your TabletSocket01.fcstd file has 3 sketches. How are we supposed to know which one you want to export?
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Problem DXF Export

Post by NormandC »

shoogen wrote:The dxf file looks like Sketch001 viewed from the top.
It may also look like Sketch002 viewed from the top.
User avatar
shoogen
Veteran
Posts: 2823
Joined: Thu Dec 01, 2011 5:24 pm

Re: Problem DXF Export

Post by shoogen »

i selected one sketch, went to edit -> duplicate selections. then i reset the placement. (edit -> Placement) and exported the sketches one by one. (see post above)
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Problem DXF Export

Post by NormandC »

Another way would be to use Draft Shape2DView on the solids instead.
claus007
Posts: 28
Joined: Fri Dec 06, 2013 11:18 pm

Re: Problem DXF Export

Post by claus007 »

shoogen wrote:i selected one sketch, went to edit -> duplicate selections. then i reset the placement. (edit -> Placement) and exported the sketches one by one. (see post above)
yes, now it worked - sorry but this is a little bit cumbersome, isn't it ? As long as it is obvious that skectch only have to dimensions....

But nevertheless thanks for the answers. For the future - Is this mentioned anywhere in the documentation ?
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Problem DXF Export

Post by NormandC »

If exporting the first "Sketch" to DXF with the current stable release, the arcs will be reversed. A fix was added to the current development release available through the Daily Builds PPA.

Here's Pad, Pad001 and Staender projected to the XY plane with Draft Shape2DView. Those objects can then be exported as DXF.

As I said, you need the Daily Builds PPA version to export arcs correctly.

OS: Ubuntu 14.04.1 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.15.3966 (Git)
Branch: master
Hash: 67b54f805203271d95ffa6f07912bbc196ff2078
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
SoQt version: 1.6.0a
OCC version: 6.7.0
Attachments
FC_TableSocket01_Shape2DView_01.png
FC_TableSocket01_Shape2DView_01.png (51.72 KiB) Viewed 1637 times
TabletSocket01_Shape2DView_normandc1.fcstd
(49.49 KiB) Downloaded 29 times
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Problem DXF Export

Post by NormandC »

claus007 wrote:As long as it is obvious that skectch only have to dimensions....
By definition a sketch can only be on a plane, hence 2 dimensions.
claus007 wrote:(except that I can't export 3d objects to dxf - ohhh REALLY ? (this was sarcasm - sorry) )
Please do not fault FreeCAD for that. The fault goes to Autodesk which chose to export 3D data in a proprietary, undocumented format (ACIS).
Post Reply