Jump to content

Recommended Posts

Posted · Using Different Slicing Modes for Stacked Models in CuraEngine

I’m using CuraEngine from the command line and would like to slice two models stacked on top of each other (a cylinder on top of a cube). The lower model should be sliced in the standard way, while the upper model should use the "Spiralize Outer Contour" option. However, Cura does not allow this parameter to be set differently for individual objects in the scene. Is there a way to bypass this limitation? I know I can run the slicing process twice and merge the resulting G-codes, but I’d like to avoid that.

  • Link to post
    Share on other sites

    Posted (edited) · Using Different Slicing Modes for Stacked Models in CuraEngine

    Similar to changing layer heights during a print - you're going to have to splice the gcodes.

    If you put a "Pause at Height" into both slices you will get the transition code for free.  There are some lines you won't need (like the pause lines) but the transition code will be really close with the proper resume point for the upper print, and the G92 E should be correct.

    You need to watch for where the end of the filament is in relation to the nozzle.  Sometimes a slice will end with a retraction but the other slice might not start with a prime.  You have to watch for that and possibly make an adjustment with the G92 E and maybe an unretract line before the spiralize portion starts.

     

    Edited by GregValiant
    • Like 1
    Link to post
    Share on other sites

    Posted · Using Different Slicing Modes for Stacked Models in CuraEngine

    Thank you very much for your answer.
    However, is there any solution if I really want to avoid making splices of G-codes?

  • Link to post
    Share on other sites

    Posted · Using Different Slicing Modes for Stacked Models in CuraEngine
    1 hour ago, pskrob said:

    However, is there any solution if I really want to avoid making splices of G-codes?

    Superglue. If you're printing PLA, anyway. Splicing the gcode is the only way to do it without just printing it as a separate object and gluing it on top.

     

    It's not very hard, if you follow the instructions. Instructions that Greg is probably better at giving than me.

  • Link to post
    Share on other sites

    Posted · Using Different Slicing Modes for Stacked Models in CuraEngine

    "I really want to avoid making splices of G-codes"

    What are you...afraid?

     

    In order to move on from basic printing of things you find on-line, to advanced printing of anything you can dream up, there are certain skills that are necessary to increase your "level of competence".

    1. Know the slicer, know your printer(s), know the materials.
      1. Those are necessary for any level of printing.  You want good prints.
    2. Learn, and be proficient in, a CAD application.
      1. "Which" CAD application is not important.
      2. Being able to create your own "stuff" and export a model to print, is important because it opens up a whole new world.
      3. Being able to modify existing models is a part of this.
    3. Learn to use "Pause At Height" and/or "Filament Change".
      1. Prints in different colors are just cool.  Printing text in different colors increases the "readability".
      2. You want to know how to insert nuts, screws, magnets, etc., into a print.
    4. Learn to utilize "Modifier Meshes" to change a model.
      1. Simple things like changing the number of walls around a hole that will be a screw connection (so it doesn't deform from the pressure of the connection) or changing the infill to make a portion of a print more robust.  It's possible to greatly enhance the "performance" of a print.
    5. Learn to splice G-codes.
      1. You have a 4 axes robot that runs on G-code.  It's a necessary skill to be able to have the robot move the way you want, rather than just accepting what "came out of the can".
      2. Whether it's changing layers heights, sticking a spiral vase on a solid base, or saving a 30 hour print that failed after 27 hours (G-code splicing 401 in your catalog) it's just a handy skill to have.

    I admit that I have the advantage of having worked with G-code for a long time, and I was a tool designer for a long time.  I am proficient at both G-code and "Inventor".

    Whether I want to print something silly like this:

    DSCN3378.thumb.JPG.b8a01d5c5d65eb118574b45c01e1a2fa.JPG

     

    Or a liquid chlorine dispensing system of my own design.

    image.png.235ae56f602be0ea2ba4bbc62d5b56d9.png

     

    I can.

  • Link to post
    Share on other sites

    Posted · Using Different Slicing Modes for Stacked Models in CuraEngine

    I’ve been working with G-code for a while now and have modified well over a thousand G-code files, either manually or using my own scripts/programs. Still, I’m aware that unexpected issues can arise when doing things by hand and resolving them can take time.

    The print process on the machine that I'm currently working on requires changing parameters that are not possible to change in regular Ultimaker Cura GUI for a single slicing. When I run these parameters with CuraEngine (CLI) I'm getting mixed results- some sliced models are broken, some are ok.

    My question: is it possible to force CuraEngine (CLI) to work with that parameters? I very much want to avoid slicing multiple times and splicing G-codes (and generate unexpected errors)? If anyone could point me in the right direction or share ideas on where to start?

    ANY advice or suggestions would be greatly appreciated!

  • Link to post
    Share on other sites

    Posted · Using Different Slicing Modes for Stacked Models in CuraEngine

    It depends on what you are really trying to do.  Splicing is one thing.  I have a VB application that looks at two files, generates the transition code, and then writes them to a new file.  Don't take but a minute.  Hand-coding is an entirely different thing.  I understand why you would want to do it through the engine.

     

    If you want to post an explanation of what you are attempting to do maybe someone will have a suggestion.

    It is certainly possible to fool Cura in different ways and get the output you want.  But you have to stay within the framework of the capabilities of the software so it isn't possible for all situations.

  • Link to post
    Share on other sites

    Posted · Using Different Slicing Modes for Stacked Models in CuraEngine
    2 hours ago, pskrob said:

    My question: is it possible to force CuraEngine (CLI) to work with that parameters? I very much want to avoid slicing multiple times and splicing G-codes (and generate unexpected errors)? If anyone could point me in the right direction or share ideas on where to start?

    AFAIK, not if the parameters are "spiralise one object out of several in a single scene". If CuraEngine was capable of that, the Cura GUI would probably let you do it. You can submit a feature request if you'd like.

  • 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.9 stable released!
        Here comes Cura 5.9 and in this stable release we have lots of material and printer profiles for UltiMaker printers, including the newly released Sketch Sprint. Additionally, scarf seams have been introduced alongside even more print settings and improvements.  Check out the rest of this article to find out the details on all of that and more
          • Like
        • 5 replies
      • Introducing the UltiMaker Factor 4
        We are happy to announce the next evolution in the UltiMaker 3D printer lineup: the UltiMaker Factor 4 industrial-grade 3D printer, designed to take manufacturing to new levels of efficiency and reliability. Factor 4 is an end-to-end 3D printing solution for light industrial applications
          • Heart
          • Thanks
          • Like
        • 7 replies
    ×
    ×
    • Create New...