Inkscape.org
Using Inkscape with Other Programs DXF import size error on some objects
  1. #1
    manny_2 manny_2 @manny_2

    Hey everyone,

    I have a problem importing a .DXF to Inkscape. When importing the attached dxf to other software I get the circles with 8mm, but when importing to Inkscape some of the circles get stretched.

    I also added two screenshots and the dxf in two versions: Demofiles + screenshots

    I'm using Windows 10 with Inkscape 1.1 (c68e22c387, 2021-05-23) but the problem seems to persist in the newer versions as well.

  2. #2
    Tyler Durden Tyler Durden @TylerDurden

    I'd try setting the numeric precision to 12 and minimum exponent to -12, in Preferences>Input/Output>SVG output>.

     

  3. #3
    Tyler Durden Tyler Durden @TylerDurden

    Keep in mind, strokes can add dimension... removing the strokes or setting bounding-box to geometric will be precise.

  4. #4
    manny_2 manny_2 @manny_2

    Hey Tyler,

    the precision solved the problem!

    thanks a lot!

  5. #5
    manny_2 manny_2 @manny_2

    Hi again,

    ok at first I thought it solved the scaling but it only solved it in some parts. The circles now have the dimension they should have, but the outer box is still 13um to small. I played a little with the precision and exponent, but that didn't fix the problem. Any ideas on that? When imported to Illustrator the file has the correct dimensions, so I guess it's not a problem of the file. I added another screenshot to the link from my first post. Interestingly, the heigh is correct but the width is 13um to small.

     

  6. #6
    Tyler Durden Tyler Durden @TylerDurden
    *

    Might be a combination, but the file is suspect.

    A dxf from Fusion 360 opens in Inkscape spot-on, also validated in LibreCad:

     

    DXF from Fusion is attached.

  7. #7
    manny_2 manny_2 @manny_2

    Hmm, I never had problems with a.e. Solidworks / fusion360 dxf but from SPIRIT (CAD for architects) this happens, I added another demo file to the link in my first post with the same problem regarding the width.