dxf import error message referring to QCad is outdated

Bug #1683063 reported by Hachmann
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Inkscape
Triaged
Wishlist
chr[]

Bug Description

When you import a dxf file that does contain polylines, Inkscape (0.92.1 on Linux Mint 18.1 and on Windows 10) will complain.

First, because there is a call to inkex.localize() missing in dxf_input.py (but I think it could also be added /somewhere/ in inkex.py, only don't know where).

Secondly, after that is fixed, because it can't deal with polylines.

The error message says "1 ENTITIES of type POLYLINE encountered and ignored. Please try to convert to Release 13 format using QCad"

This isn't wrong, because the paid version of QCad can do the conversion. However, there exists a fork of QCad called LibreCad, which can do the conversion, too, and is packaged for Ubuntu, and also available for Windows and OSX and which is free. I would suggest that the error message refers to that program instead.
(tested that it works on Ubuntu/Linux Mint, not tested on Windows)

Suggested fix for extension is attached.

User complaining that QCad doesn't save as R13 format: http://www.eevblog.com/forum/eda/dxf-the-format-from-hell/msg856893/?PHPSESSID=q1v77iophg8km7g76lhgkstlh7#msg856893

List of QCad free/paid features: http://qcad.org/en/qcad-documentation/qcad-features

Ubuntu Wiki (German): https://wiki.ubuntuusers.de/LibreCAD/

LibreCad home page: http://librecad.org/cms/home.html

Revision history for this message
Hachmann (marenhachmann) wrote :
jazzynico (jazzynico)
tags: added: dxf extensions-plugins
Changed in inkscape:
importance: Undecided → Wishlist
milestone: none → 0.93
status: New → In Progress
Revision history for this message
chr[] (chr0x07) wrote :

Well ... instead bailing out, I implemented the missing POLYLINE/VERTEX stuff

We get many files and I like to open them with inkscape ;)

This is still work in progress, the options and the inx file needs update

jazzynico (jazzynico)
Changed in inkscape:
assignee: nobody → chr[] (chr0x07)
Revision history for this message
Helge Wurst (h+lge) wrote :

I tried opening a dxf file (AC1009) exported by Eagle 7.7 and found this bug report via
http://www.inkscapeforum.com/viewtopic.php?t=32212

First of all, chr[] (chr0x07) thank you so much for dealing with this issue. Unfortunately there seem to be more issues down the line that need adressing -

* RECT appears to be missing in the implementation, however POLYLINEs are drawn
* svg PATH objects are faulty, a lot of junk seems to be generated instead or the POLYLINE creating the semicircle has wrong vertices.

I'd like to try and fix these issues but right now I know very little about the DXF file structure, only the basics about svg and a bit of python. The RECT entity issue feels within reach but I have no clue what's going on with the blobby POLYLINE bug. Help is much appreciated.

Also not sure whether this is directly related to #1683063 or worth another ticket.

Helge

Revision history for this message
chr[] (chr0x07) wrote : Re: [Bug 1683063] Re: dxf import error message referring to QCad is outdated

Hi Helge,

inkscape dxf import needs a complete rewrite. It freaks when it meets
unknown entities.

I've discovered a good parser so far, but still I need some time and mood
to complete it.

chr[]

On 02.08.2017 16:42, Helge Wurst wrote:
> I tried opening a dxf file (AC1009) exported by Eagle 7.7 and found this bug report via
> http://www.inkscapeforum.com/viewtopic.php?t=32212
>
> First of all, chr[] (chr0x07) thank you so much for dealing with this
> issue. Unfortunately there seem to be more issues down the line that
> need adressing -
>
> * RECT appears to be missing in the implementation, however POLYLINEs are drawn
> * svg PATH objects are faulty, a lot of junk seems to be generated instead or the POLYLINE creating the semicircle has wrong vertices.
>
> I'd like to try and fix these issues but right now I know very little
> about the DXF file structure, only the basics about svg and a bit of
> python. The RECT entity issue feels within reach but I have no clue
> what's going on with the blobby POLYLINE bug. Help is much appreciated.
>
> Also not sure whether this is directly related to #1683063 or worth
> another ticket.
>
> Helge
>
>
> ** Attachment added: "sample files and illustrations"
> https://bugs.launchpad.net/inkscape/+bug/1683063/+attachment/4925876/+files/inkscape%200.92.1%20dxf_import.rar
>

Changed in inkscape:
status: In Progress → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.