[SOLVED] Error in exporting drawing as autodesk .dxf in freeCAD 0.18

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!
Martin0707
Posts: 5
Joined: Tue May 07, 2019 2:01 pm

[SOLVED] Error in exporting drawing as autodesk .dxf in freeCAD 0.18

Postby Martin0707 » Tue May 07, 2019 2:19 pm

An export of a drawing to an autodesk .dxf file is not working in FreeCAD 0.18 (windows 10 pc). It results in an error "invalid syntax (dxfReader.py, line 88). I have read somewhere that it might be a non-compatible phyton script?!? Will it be fixed in an update or in version 0.19? In version 0.17 it still works fine, on the same pc.
Attachments
export autodesk DXF (2D) step 1.JPG
Export autodesk DXF (2D) step 1 (Freecad 0.18)
export autodesk DXF (2D) step 1.JPG (62.6 KiB) Viewed 1298 times
export autodesk DXF (2D) step 2.JPG
Export autodesk DXF (2D) step 2 (Freecad 0.18)
export autodesk DXF (2D) step 2.JPG (18.96 KiB) Viewed 1298 times
Last edited by Martin0707 on Wed May 08, 2019 10:32 am, edited 1 time in total.
User avatar
yorik
Site Admin
Posts: 11701
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

Re: Error in exporting drawing as autodesk .dxf in freeCAD 0.18

Postby yorik » Tue May 07, 2019 3:03 pm

This is strange... Could you try this in the python console in FreeCAD (menu Views -> Panels -> Python console):

Code: Select all

import dxfReader
And paste here the error message that appears? It should give us more info...
Martin0707
Posts: 5
Joined: Tue May 07, 2019 2:01 pm

Re: Error in exporting drawing as autodesk .dxf in freeCAD 0.18

Postby Martin0707 » Tue May 07, 2019 3:09 pm

yorik wrote:
Tue May 07, 2019 3:03 pm
This is strange... Could you try this in the python console in FreeCAD (menu Views -> Panels -> Python console):

Code: Select all

import dxfReader
And paste here the error message that appears? It should give us more info...
Thanks for your prompt reply. The message is:

Code: Select all

>>> import dxfReader
Traceback (most recent call last):
  File "<input>", line 1, in <module>
ModuleNotFoundError: No module named 'dxfReader'
>>>
chrisb
Posts: 22526
Joined: Tue Mar 17, 2015 9:14 am

Re: Error in exporting drawing as autodesk .dxf in freeCAD 0.18

Postby chrisb » Tue May 07, 2019 5:11 pm

For console output it is best to put it in code tags </>. Makes it easier to identify and keeps indentations.

I have done so with your post.
User avatar
easyw-fc
Posts: 2803
Joined: Thu Jul 09, 2015 9:34 am

Re: Error in exporting drawing as autodesk .dxf in freeCAD 0.18

Postby easyw-fc » Tue May 07, 2019 5:23 pm

It seems the legacy dxf lib is not installed
Martin0707
Posts: 5
Joined: Tue May 07, 2019 2:01 pm

Re: Error in exporting drawing as autodesk .dxf in freeCAD 0.18

Postby Martin0707 » Wed May 08, 2019 8:37 am

Can I install the legacy dxf lib myself somehow (or change the path pointer), or should it be done by the package installer. The legacy driver is probably already on my pc somewhere, since freeCAD 0.17 works fine with the export to .dxf function on the same pc.
User avatar
easyw-fc
Posts: 2803
Joined: Thu Jul 09, 2015 9:34 am

Re: Error in exporting drawing as autodesk .dxf in freeCAD 0.18

Postby easyw-fc » Wed May 08, 2019 8:46 am

Martin0707 wrote:
Wed May 08, 2019 8:37 am
Can I install the legacy dxf lib myself somehow (or change the path pointer), or should it be done by the package installer. The legacy driver is probably already on my pc somewhere, since freeCAD 0.17 works fine with the export to .dxf function on the same pc.
for FC0.18 you need the latest dxf-library

it can be installed through the Addon Manager
dxf-library.png
dxf-library.png (20.96 KiB) Viewed 1225 times
Martin0707
Posts: 5
Joined: Tue May 07, 2019 2:01 pm

Re: Error in exporting drawing as autodesk .dxf in freeCAD 0.18

Postby Martin0707 » Wed May 08, 2019 9:08 am

Thank you very much.
This was exactly what I needed. It works now. Can I give kudo`s somehow?

I'm a big fan of FreeCAD and the community!
Martin
UR_
Posts: 1175
Joined: Tue Jan 03, 2017 8:42 pm

Re: Error in exporting drawing as autodesk .dxf in freeCAD 0.18

Postby UR_ » Wed May 08, 2019 9:46 am

Please note there is a preference setting concerning this behavior ;)

Annotation 2019-05-08 113627.png
Annotation 2019-05-08 113627.png (83.9 KiB) Viewed 1209 times
User avatar
easyw-fc
Posts: 2803
Joined: Thu Jul 09, 2015 9:34 am

Re: Error in exporting drawing as autodesk .dxf in freeCAD 0.18

Postby easyw-fc » Wed May 08, 2019 10:22 am

UR_ wrote:
Wed May 08, 2019 9:46 am
Please note there is a preference setting concerning this behavior ;)
I'm not sure this is updating if the lib already exists... at least on my installation didn't do it.
Martin0707 wrote:
Wed May 08, 2019 9:08 am
Thank you very much.
This was exactly what I needed. It works now. Can I give kudo`s somehow?
You are welcome.
Just edit the title of the first most adding [SOLVED] at the beginning.