Author Topic: Screwed elipse import from DXF  (Read 1145 times)

June 06, 2018, 03:37:28 AM
Read 1145 times

Krzysztof

  • Jr. Member

  • Offline
  • ***

  • 40
I was using version 0.91 since 2015, and the import elipse objects from DXF were functioning properly.
No I have tried new 0.92.3 version and this feature is totally screwed. I can't import blueprints with elipse objects at all.
Autocad (at least 2010) is using minus X scale for mirrored blocks, and if such blocks are exploded to primitive objects the Inscape can't import elipses properly, and is placing them in totally different localizations versus the DXF files.
I tried different DXF versions but it doesn't change anything.

EDIT: it seems all 0.92 versions have this issue. I have download 0.91 binary 7z package only for import purpose. I hope it can work as portable among installed 0.92.3 version.
  • 0.92.3
  • Win7x64

June 06, 2018, 10:58:43 PM
Reply #1

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
Welcome to the forum!

This sounds like something that should be reported directly as a bug:  https://launchpad.net/inkscape

But if you'd like us to test it, before reporting it, please share a DXF file which is showing the problem, along with specific steps to reproduce.

I'm not completely sure what you mean about using a 7z version of Inkscape as portable.  But just so you know, there is a specific portable version of Inkscape. 

Hhmm, well there used to be.  I can't seem to find it anymore.

Edit
Found the portable version.  For some reason, it's only available under the 32-bit system.
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann                       

June 07, 2018, 05:17:14 AM
Reply #2

Krzysztof

  • Jr. Member

  • Offline
  • ***

  • 40
Welcome to the forum!

This sounds like something that should be reported directly as a bug:  https://launchpad.net/inkscape

But if you'd like us to test it, before reporting it, please share a DXF file which is showing the problem, along with specific steps to reproduce.

I attached simple DXF exported from ACAD 2010 to 2004 DXF format (other DXF versions - no change). Also SVGZ file made from DXF by file/import in Inkscape 0.92.3.
The only elipses in this DXF are parts of toilets, but I have got more to tracing with more objects. Look where are they after imported in Inkscape.

This issue no exists in 0.91 Inkscape version. It probably is the effect of new elipse drawing system introduced in 0.92.
The elipses which were in autocad block, and the block had set -1 X scale, after exploded have different start and end point (reversed) even if they placed in the same location.

And the only -1 X scale problem seems to be with elipses. I checked other blocks setting them -1 X scale and exploding, and they look the same in Inkscape.


I'm not completely sure what you mean about using a 7z version of Inkscape as portable.  But just so you know, there is a specific portable version of Inkscape.

I meant 7z binary package, which can be downloaded from official page, one of alternatives to download. It is separate download among installer or something named portable. It is not packed installer with 7z but a inkscape folder contained files as they are after install operation. It seems to work as a standalone version which doesn't need to be installed but I think that it would be better to ask.
And this 7z binary is also 64 bit, where portable is not.
  • 0.92.3
  • Win7x64

November 15, 2018, 01:15:50 AM
Reply #3

Krzysztof

  • Jr. Member

  • Offline
  • ***

  • 40
Anyone figured which one is at fault basis on attached files? Autocad or Inkscape?
  • 0.92.3
  • Win7x64

November 15, 2018, 09:41:33 AM
Reply #4

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
Oh gosh, I'm not sure why I didn't see your last message in June.  This problem might be a bit over my head, and it sounds like you might already know more about it than I do.  But I'll try.

Ok, I've opened both files, but I don't see any ellipses.  I see the toilets.  For some reason, a couple of them are waaaaayyy over to the left!  But they are paths.  And they don't look deformed.

Hhmm, but then, I'm not using the portable version.  I'm using the 7z package for 0.92.3, not portable.

Ooohh, you're saying that the toilets being in the wrong place IS the problem, right?  But not all the toilets are far away.  One of them is in the right place.  Or at least it looks like it's in the right place.

But they are definitely paths, and not ellipse shapes.  So I'm not sure if it can be blamed on changes to ellipse code or geometry or whatever it was.  But there's a good chance I don't understand something.

Well, maybe someone else can offer more helpful comments. 

If you still want to make a bug report, you certainly can.  Start here, to learn what needs to be included in a bug report.  And then follow the link to the bug tracker.  https://inkscape.org/contribute/report-bugs/

Oh, one last comment.  That displacement of objects seems suspiciously like bugs which are related to the transform attribute.  (which is certainly not uncommon in a somewhat complex file like this)  I don't think I've ever seen it with file format conversions.  But that doesn't mean it can't happen.  And it does seem suspicious.

Are you seeing this in multiple files?  The workaround for those bugs is to move those objects to a new layer, and perform whatever you were trying to do that wasn't working before.  But if it's happening in multiple files, that might not be really feasible.  Not to mention the fact I'm not sure how moving to another layer would work during a format conversion.

Another potential trigger for these bugs (beside any random transform that you might do in a file) is to change the page size or switch from portrait to landscape orientation or vice versa.  So you could avoid that, if it's relevant.

Ok, now this is really the last comment.  I'm not sure what you mean by this

The elipses which were in autocad block, and the block had set -1 X scale, after exploded have different start and end point (reversed) even if they placed in the same location.

And the only -1 X scale problem seems to be with elipses. I checked other blocks setting them -1 X scale and exploding, and they look the same in Inkscape.
 

Whatever the autocad block is, or "exploding", I have no idea what it is or what it means.  I've never used AutoCAD.  But again, you're welcome to make a bug report.

But you do have the Scale set wrong for the SVGZ file.  When I open the DXF in Inkscape, the scale is set properly.  And the toilets are still far away.  So I don't think the displacement of the toilet paths is related to the wrong scale.  But I (or someone) can tell you how to fix the scale for the SVGZ file, if you like.

  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann                       

November 15, 2018, 04:12:41 PM
Reply #5

Krzysztof

  • Jr. Member

  • Offline
  • ***

  • 40
This is what I have described - the objects have proper shape but are moved far far away. You have said You don't see ellipses. They are in DXF. But when You open DXF with inkscape it converts it to shapes.
I described what the differences are beetween good converted ellipses and bad converted, look again at my earlier post.
About blocks - Autocad can group some plain objects into one entity. They are saved in DXF format (blocks), but every Inkscape prior 0.9x version I have tested had issues to import cad blocks as blocks.
Mostly the orientation/rotation and coordinates of objects inside block were wrongly converted by Inkscape. So it was a total mess and fixing it on Inkscape level was a waste of time.
So we started to explode blocks into primitives - lines, polylines, arcs, ellipses - before importing DXF into Inkscape.
If i import attached DXF in version before 0.92.3 these ellipses/shapes are where it should be, not far far away.

  • 0.92.3
  • Win7x64

November 15, 2018, 10:13:47 PM
Reply #6

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
I have no idea what the AutoCAD blocks are doing, which Inkscape can't handle.  But you're welcome to file a bug report.  Start here to find out what kind of info you need to provide in the report, and then follow the link to the bug tracker.  https://inkscape.org/contribute/report-bugs/

Normally I would offer to make the report for you, in case you don't want to get involved on this level; except that you have a much better understanding about it than I do.  So if developers have questions, it would be better for you to be able to answer them yourself, instead of me just guessing about it.

Not unless you think there might be some solution already?  As I've said, this whole issue is a bit over my head.  Maybe someone else knows?
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann                       

November 15, 2018, 11:54:04 PM
Reply #7

Krzysztof

  • Jr. Member

  • Offline
  • ***

  • 40
Is is acceptable that I will fill the bug report and link this thread for explanation? Or something like that will be refused?
  • 0.92.3
  • Win7x64

November 16, 2018, 08:32:09 AM
Reply #8

Moini

  • IC Mentor

  • Offline
  • ******

  • 1,568
    • VektorRascheln
It's okay to link to it as 'additional info', but you must include the full info that is required to fix the bug into the report itself.