Inkscape.org
Beginners' Questions DXF file when re-opening - Width and Height in mm which was fixed on saving changes slightly...Why?
  1. #1
    Brewski Brewski @Brewski

    I am hoping someone knows what I am doing wrong here and can help me fix this easily PLEASE.   

    I use Inkscape to import my svg then resize the image to the actual laser cut size and lock it to H1150 mm x W600 mm as an example size and save as a dxf. When reopening the dxf file in Inkscape (saying read from file and it says mm scale 1) it opens the dxf with is set to pw which is a pain but when I change it to mm it seems to have slightly changed my H&W settings to H 1149.879 and W 599.881 why does it keep doing this to all my files. I sent the file to my laser printer and they confirmed that its changed to the other mm settings as well. How can I fix this pls?

    I have googled and watched many videos but nothing I have done has fixed it.  I tried saving other formats pw and Inches etc but it mm I need the file to be accurate in and its not.

    Inkissue
  2. #2
    Tyler Durden Tyler Durden @TylerDurden

    I'd ensure that Inkscape bounding-box preferences are set to geometric, for any work with cutters, cad and cam. Without using geometric BB, lineweight/stroke is included in object dimensions, resulting in errors of actual geometry.

     

    I also would cross-check any dxf files with a cad program: LibreCad, FreeCad, or commercial programs.

     

     

  3. #3
    Brewski Brewski @Brewski

    Hi Tyler,

    Thanks for responding and for your help much appreciated.  I tried your suggestion today and I am still getting same error.   What's very interesting is if I toggle to the cm measurement its the correct dimensions but not when I choose mm ?  See new screen shots.   

  4. #4
    Brewski Brewski @Brewski

    ok so after 4 hours of fiddling it seems that even tho I have saved the DXF file locked down in mm H1150.000 x W600.000 when re-opening the DXF file in Inkscape it has changed the values slightly to H1149.998 x W600.000, but if I toggle the same file to CM they are accurate including the decimal points. H115.000 x W60.000 ... any suggestions why this happens and how to fix it? 

    Here are all the files I tested,   MM are the issue and cm are perfect with the decimal points.  

  5. #5
    COD COD @COD

    I have dealt with this issue for a little over 2 years with Fusion 360. The limited research I have done leads to what is called "accumulated rounding errors". I have somewhat learned how to deal with it to a limited extent. 

    Anytime you create an SVG object (or path) - the more you play with it (move, rotate, scale etc) - the more likely you will introduce these errors. This is the nature of SVG. 

    In your case it could be rounding errors intoduced both into conversion to dxf  and reimporting that result back into Inkscape. A photocopy of a photocopy of a photocopy of a photocopy .......

    My question would be - is the DXF export correct when you import it into your laser software? If so - why reimport it back into Inkscape if you have the original SVG in Inkscape? 

    If DXF export is incorrect - then I can point to ways to correct that - maybe. 

  6. #6
    Brewski Brewski @Brewski
    👍
    Hi COD, Thanks for the reply and what you say above makes total sense. The reason I reimported it is bc the lazer cutting company will only accept dxf files however my original file design was in svg. So I was trying to convert it and then reopen in Inkscape to confirm the dxf file was accurate before emailing it across to them to do the lazer cut, which is when I picked up the rounding issue on the re-open file. I have tried to download a few free dxf software's programs to open the dxf file that way, however the free versions LibreCAD/FreeCAD are so complicated I cant figure out how to just view the size/scale of my design. I am not a CAD designer. Anyway the slight rounding issue at this stage wont cause me to much of an issue with the lazer cut company so I am just sending the files to them with the rounding issue as is. Thanks again, to all that replied your help was much appreciated.
  7. #7
    COD COD @COD

    Just a reminder - many software packages will import Inkscape documents directly without have to export out as DXF or plain vanilla SVGs. That wasn't the case just a few short years ago. Fusion 360 does an amazing job at that now. Lasergrbl and  Cricut Design Space will too (to what extent, I haven't checked 100%). I played around with FreeCad a few years back and haven't verified what it can do now. Plasticity has just released a new version that finally accepts SVG files - looking forward to checking that out soon. 

    I actually have had more issues in Fusion 360 with DXF files than with direct import of Inkscape documents. Go figure!

Inkscape Inkscape.org Inkscape Forum Beginners' Questions DXF file when re-opening - Width and Height in mm which was fixed on saving changes slightly...Why?