Jump to content
UltiMaker Community of 3D Printing Experts

Export the cura 3d preview as a model?


greens83

Recommended Posts

Posted · Export the cura 3d preview as a model?

Hello ultimaker efficianados. Does anyone know of a way to export the 3d layer preview cura creates after slicing to a 3d model?

 

This would be extremely useful for rendering images of 3d printed designs.

 

Thanks in advance for any info.

  • Link to post
    Share on other sites

    Posted · Export the cura 3d preview as a model?

    The 3D toolpath is a bunch of lines in space.  It will contain Travel Moves and maybe Wipe moves and Z-Hop moves, if it is a dual extruder situation then Cura may have adjusted the X and/or Y coordinates to include the extruder offset numbers.  

     

    Then there is the offset due to Line Width.  Consider a calibration cube 20 x 20 x 20 sliced with a 0.4 line width.  The outside wall paths in the X and Y would measure 19.6 x 19. 6 (1/2 line width short all the way around) so it wouldn't be correct to try to make a model from that.  (I've done that when all I had was a gcode and I had to design that part to fit with another part.  It's no fun.)

     

    I wrote a macro for AutoCad that will read a gcode file and render it in Model Space.  The result looks like the model, but it isn't a model.  Yesterday I started to alter it so it would read an Arc Welded gcode that was for a Dual Extruder printer.  It's not going well (it works but it was processing 600 lines/sec and now it's down to 60lines/sec.).

     

    If you have the STL file then there are conversion utilities (like THIS ONE...you need to create a free account) to turn it into a DXF file that most CAD software can open.  The resultant structure (which is not a model) will be comprised of triangle shaped objects rather than parametric bodies or 3d solids.  It can be rendered into a colored body and it is the same size as the STL (rather than having nozzle width offsets).

     

    So yes, it might be convenient but I really don't see it happening.

    • Thanks 1
    Link to post
    Share on other sites

    Posted · Export the cura 3d preview as a model?

    Appreciate the info. All I want it for is to visualise (photorealistically) how a part looks with the layers as they are sliced. A bunch of lines in space would work for me. I guess there isn't a way to isolate just the lines where material is being extruded though? Any vector based format of the lines just when the material is being extruded would work for what I want.

  • Link to post
    Share on other sites

    Posted · Export the cura 3d preview as a model?

    I think SuperSlicer can make an STL out of a gcode file by exporting "pipes" for the toolpath.

     

    In theory, I could make a plugin that does the same for Cura, but frankly I don't see enough of a usecase other than "greens83 want it and thinks it is really important".

    • Thanks 1
    Link to post
    Share on other sites

    Posted · Export the cura 3d preview as a model?

    @ahoeben thanks for the heads up on super slicer. Ill check it out. I wish I had the skills to write a plugin! Appreciate you can't write plugins for everyone asking for them!

     

    I'm sure other users would find it useful too though. Im a product designer and I believe some products can be produced with fdm 3d printing much more sustainably than by other manufacturing methods. Being able to show what a product will look like photorealistically exactly as its sliced without having to print it would save a lot of filament! Now ultimaker seems to have moved towards professional applications im sure they might see merit in it too.

     

    Anyway thanks again for your reply and info.

  • Link to post
    Share on other sites

    Posted · Export the cura 3d preview as a model?

    It requires MS Excel because the VBA of AutoCad doesn't have a file opening dialog.  It's also written for Acad 2000 which is what I have.  If that will work then let me know and I'll see what it takes to make it portable.  Right now it calls other functions within the project.  I'd need to move those and adjust the dialog box it uses.

     

  • Link to post
    Share on other sites

    Posted (edited) · Export the cura 3d preview as a model?

    Appreciate it. I don't want to waste your time though so Ill have a go with Super Slicer first and see if that does what I need.

    If not Ill message back. Thanks for your help.

    Edited by greens83
  • Link to post
    Share on other sites

    Posted · Export the cura 3d preview as a model?

    Load your G-Code in PrusaSlicer (or SuperSlicer) and export as OBJ to use it in Blender :

    https://help.prusa3d.com/en/article/export-toolpaths-as-obj_1777

  • Link to post
    Share on other sites

    Posted · Export the cura 3d preview as a model?

    Thanks @Cuq. Do you know  if I can load g-code created in cura or do I need to re-slice? 

  • Link to post
    Share on other sites

    Posted · Export the cura 3d preview as a model?
    6 minutes ago, greens83 said:

    Thanks @Cuq. Do you know  if I can load g-code created in cura or do I need to re-slice? 

    Yes you can load the Cura-Gcode in PrusaSlicer as well in SuperSlicer

    • Thanks 1
    Link to post
    Share on other sites

    Posted · Export the cura 3d preview as a model?

    Perfect. Thank you!

  • Link to post
    Share on other sites

    Posted · Export the cura 3d preview as a model?

    You can also do the same without using PrusaSlicer or SuperSlicer but just by using their Gcode-Viewer

    image.png.01470c2c6eb77fdeaaf7c5a44700d305.png

     

  • Link to post
    Share on other sites

    Posted · Export the cura 3d preview as a model?

    This is exactly what I need. Thanks for your help. I've only ever really used cura so its really good I can use the gcode from it and don't have to learn another slicer. I might have a play around with pruser slicer tho. I've got all ultimakers but contemplating a prusa i3.

  • 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
    • Our picks

      • UltiMaker Cura 5.3 stable released
        In this stable release, Cura 5.3 achieves yet another huge leap forward in 3D printing thanks to material interlocking! As well as introducing an expanded recommended print settings menu and lots of print quality improvements. Not to mention, a whole bunch of new printer profiles for non-UltiMaker printers!
          • Thanks
          • Like
        • 24 replies
      • 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
        • 18 replies
      • UltiMaker Cura 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
        • 22 replies
    ×
    ×
    • Create New...