Welcome to Our Community

Some features disabled for guests. Register Today.

FreeCAD .dxf .svg drawing load problems

Discussion in 'CAM' started by Chopper Bob, Feb 10, 2025.

  1. Chopper Bob

    Builder

    Joined:
    Feb 6, 2025
    Messages:
    1
    Likes Received:
    0
    I have tried everything except for what will work. I create a part in FreeCAD and export it to a .dxf file. When I Open Drawing in OpenBuilds CAM, the .dxf comes in with 3 of the 8 arcs incorrectly and unusable. When I export the part as a .svg file and bring it into CAM, the lines and arcs are all as drawn but all of the dimensions are smaller than as drawn. I did use the FreeCAD created .svg file to create a G-code in CAM and then use CONTROL to send it to my JD Garage's plasma table. It cut out perfectly save for the fact it was smaller than drawn by about 9%. I am probably doing something stupid but for the life of me I just can't see it. HELP!
     

    Attached Files:

  2. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    15,497
    Likes Received:
    4,421
    Should be Polylines: See docs:software:file-errors [OpenBuilds Documentation]

    Fixing example: Problems with importing DXF into OBcam

    SVGs are unitless (DPI to get from pixel to inch) always tricky, trick is to export at the correct DPI usually 96DPI, but some applications (and even versions) have their own defaults just to add to the confusion

    Code:
     if (editor == "inkscape") {
        if (version > 0.91) {
          dpi = 90;
        } else if (version > 1.0) {
          dpi= 96;
        } else {
          dpi= 96;
        }
      } else if (editor == "illustrator") {
        dpi= 72
      } else if (editor == "Opentype.js") {
        dpi= 57
      } else {
        dpi= 96; // Default
      }
    
    


    90 divided by 96 = 0,9375 - so maybe you exported at 90dpi instead of 96dpi. FreeCAD must be another culprit ignoring the more standard 96DPI.

    Either way, use DXF - way better, just make sure its clean (DXF R14, Polylines only, make sure its good clean closed vectors)
    Same advise applies to almost all CAMs, the cleaner the DXF the easier it is for them to understand the file
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice