Jump to content
UltiMaker Community of 3D Printing Experts

SVG Toolpath Reader - size? mm?


greens83
 Share

Recommended Posts

Posted · SVG Toolpath Reader - size? mm?

Hello,

 

Hoping someone can shed some light on this for me. I have drawn a toolpath in adobe illustrator at the exact size I want it (in mm) 

However when I open the SVG saved from illustrator into Cura it is significantly smaller. 

Does anyone know what Cura/SVG Toolpath Reader identifies as the dimensions/units of the SVG file? It says on GitHub its mm, but it is definitely not coming in as mm. The Illustrator file is definitely drawn in mm. Artboard set too mm. Rulers confirm outer dims are exactly as I want them.

 

Any suggestions or info would be very much appreciated.

  • Link to post
    Share on other sites

    Posted · SVG Toolpath Reader - size? mm?

    Well the error is hopefully EXACTLY 25.4X and if you click on the part and set the scale tool to 2540% and that gets it close then it's probably exactly that.  Also often it is off by EXACTLY 10x.  So try those 2 scales and hopefully that will explain a lot.  If it's too small by 25.4 then illustrator is probably switching to inches at the last second when it saves the file.  If it is off by 10X then illustrator is probably switching to cm at the last second when it saves the file.

    • Like 1
    Link to post
    Share on other sites

    Posted · SVG Toolpath Reader - size? mm?

    Hi, thanks for the reply. I cant manually scale the toolpath in cura. There is no option to do that. The scale looks to be about 20% too small. Weird. All I can do is make it too big to start with but I have no way of knowing by how much!

  • Link to post
    Share on other sites

    Posted · SVG Toolpath Reader - size? mm?

    I can see in the svg file (via notepad) that the viewbox is set to the size of the build plate (223 x 223)

    width="223px" height="223px" viewBox="0 0 223 223"

    So all I can assume is that the svg toolpath reader plugin is somehow reading 223 not as 223mm but as another unit or has some conversion factor? or something I dont understand about svg files is dictating the size.

     @ghostkeeper can you help me out here please?

  • Link to post
    Share on other sites

    Posted · SVG Toolpath Reader - size? mm?

    Ok through trial and error I got it to come in at the right scale. If anyone else runs into this with svg form adobe illustrator here's what I did.  Save as - SVG, tick use artboards. settings here:

    396405671_Screenshot2021-11-0817_04_59.thumb.png.9749ecd6332ca35f42381e879bde8513.png

    No idea which ones made it come in as scaled. It was just trial and error.

     

     

    • Thanks 1
    Link to post
    Share on other sites

    Posted · SVG Toolpath Reader - size? mm?

    Admittedly, it's hard to get right. This is where the scale is determined (in particular the unit_w and unit_h variables, determining how big each unit length of the SVG will be IRL): https://github.com/Ghostkeeper/SVGToolpathReader/blob/b12fc84aad90f2d4a9dac00d1c676b47dda4b0d8/Parser.py#L1352-L1372

     

    In effect, the viewBox property determines how big the image should become, in millimetres. The image width and height determine how it should scale the image to be in that viewbox. It doesn't do any clipping.

     

    Looking at this now, it does seem to be somewhat different than how SVGs are normally rendered on a screen. This may need some fixing, if you can post an example in Github Issues of an SVG that goes wrong: https://github.com/Ghostkeeper/SVGToolpathReader/issues

  • Link to post
    Share on other sites

    Posted (edited) · SVG Toolpath Reader - size? mm?

    Thanks for the response @ghostkeeper

    I tried to attach svg in github issues and here but neither accept the file type. I'm not sure If this problem is limited to Illustrator though. Lots of people complaining about the svg output on Adobe forums.

     

    Its such a useful tool with a lot of potential imo, thank you for making it available. Id love to see it better integrated into Cura though. It would be much more friendly If it could be used and displayed with other imported stl files over the top of the drawn toolpath so you can see how it will line up and dont have to cut and paste gcode. Another file format like dxf would be great too. I'm sure I'm asking for far too much and it would be a lot more complicated to implement than I realise!

    Edited by greens83
  • Link to post
    Share on other sites

    Posted · SVG Toolpath Reader - size? mm?

    I have figured out a better way to do what I wanted the svg toolpath to do and thought Id share.

     

    I drew my toolpath in autocad. I made sure the lines were a nozzle width apart. I then extruded the line into a surface (open polyline so it doesn't become a solid volume). Now I print using the 'surface' mode in cura. I use the per model settings to make this toolpath/extruded surface my first layer and then print whatever I want on top of it. Works perfectly.

    • Thanks 1
    Link to post
    Share on other sites

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now
     Share

    • Our picks

      • Here it is. The new UltiMaker S7
        The UltiMaker S7 is built on the success of the UltiMaker S5 and its design decisions were heavily based on feedback from customers.
         
         
        So what’s new?
        The obvious change is the S7’s height. It now includes an integrated Air Manager. This filters the exhaust air of every print and also improves build temperature stability. To further enclose the build chamber the S7 only has one magnetically latched door.
         
        The build stack has also been completely redesigned. A PEI-coated flexible steel build plate makes a big difference to productivity. Not only do you not need tools to pop a printed part off. But we also don’t recommend using or adhesion structures for UltiMaker materials (except PC, because...it’s PC). Along with that, 4 pins and 25 magnets make it easy to replace the flex plate perfectly – even with one hand.
         
        The re-engineered print head has an inductive sensor which reduces noise when probing the build plate. This effectively makes it much harder to not achieve a perfect first layer, improving overall print success. We also reversed the front fan direction (fewer plastic hairs, less maintenance), made the print core door magnets stronger, and add a sensor that helps avoid flooding.
         

         
        The UltiMaker S7 also includes quality of life improvements:
        Reliable bed tilt compensation (no more thumbscrews) 2.4 and 5 GHz Wi-Fi A 1080p camera (mounted higher for a better view) Compatibility with 280+ Marketplace materials Compatibility with S5 project files (no reslicing needed) And a whole lot more  
        Curious to see the S7 in action?
        We’re hosting a free tech demo on February 7.
        It will be live and you can ask any questions to our CTO, Miguel Calvo.
        Register here for the Webinar
          • Like
        • 10 replies
      • UltiMaker Cura 5.3.0-Alpha 🎄 Tree Support Spotlight 🎄
        Are you a fan of tree support, but dislike the removal process and the amount of filament it uses? Then we would like to invite you to try this special release of UltiMaker Cura. Brought to you by our special community contributor @thomasrahm
         
        We generated a special version of Cura 5.2 called 5.3.0 Alpha + Xmas. The only changes we introduced compared to UltiMaker Cura 5.2.1 are those which are needed for the new supports. So keep in mind, this is not a sneak peek for Cura 5.3 (there are some really cool new features coming up) but a spotlight release highlighting this new version of tree supports.  
          • Like
        • 16 replies
      • New here? Get ahead with a free onboarding course
        Hi,
         
        Often getting started is the most difficult part of any process. A good start sets you up for success and saves you time and energy that could be spent elsewhere. That is why we have a onboarding course ready for
        Ultimaker S5 Pro Bundle, Ultimaker S5, Ultimaker S3 Ultimaker 2+ Connect.   
        They're ready for you on the Ultimaker Academy platform. All you need to do to gain access is to register your product to gain free access. 
        Ready? Register your product here in just 60 seconds.
          • Like
        • 14 replies
    ×
    ×
    • Create New...